社区应用 最新帖子 精华区 社区服务 会员列表 统计排行 社区论坛任务 迷你宠物
  • 3359阅读
  • 0回复

asp下用OracleInProcServer完成对Oracle的连接和操作

级别: 经院博士
发帖
3975
铜板
4727
人品值
1147
贡献值
565
交易币
0
好评度
3833
信誉值
0
金币
0
所在楼道
学一楼
0 then C7}iwklcsa  
Response.Write 错误 : & err.description & `0w!&  
response.end Tu,nX'q]m  
End if V`YmGo  
End Sub #J8(*!I  
Sub EndDB() N=~DSsw  
Set objOraDB = Nothing BO6XY90(  
Set objOraSession = Nothing e 0Z2B2  
End Sub D~`RLPMk  
Function getTableList(str) D$rn?@&g  
Dim strSql,strTmp ?P#\ CW  
Dim objRs %|f@WxNrU  
strSql = Select at.table_name as tname,au.username as uname from all_tables at,all_users au Where au.username=at.owner order by au.username ~x@V"rxGw  
Set objRs = objOraDb.DbCreateDynaset(strSql,0) PGVp1TQ  
While Not objRs.Eof Qv;b$by3  
strA = objRs(uname) & . & objRs(tname) "T<7j.P?  
5LU7}v~/  
If str=strA then sqjDh  
strTmp = strTmp & & strA & !1]jk(Z  
Else A@4{-e\  
strTmp = strTmp & & strA & JRE\R&>g  
End if nr( C*E  
objRs.MoveNext 0m\( @2E  
Wend HzuG- V  
Set objRs = Nothing m`Z.xIA7;  
getTableList = strTmp ycvgF6Me<  
End Function BGOS(  
% > pL>Yx>  
MU:v& sk  
h gwS_L  
{~(XO@;b  
98 uMD  
All Tables : ,:V[H8 ?  
1:./f|m  
I?%#`Rvu  
iU=:YPE+ .  
[;'$y:L=g  
() !ZCxi  
bX5/xf$q  
/len8FRf  
beV+3HqB8  
DiZv sc  
*TCV}=V G  
  then ="Az g8W  
strSql = Select * from & tblname <A`SC;k\u  
Set Rs = objOraDb.DbCreateDynaset(strSql,0) km`";gUp>  
Response.Write Pi,86?  
for i=0 to rs.Fields.count-1 ^% Ln@!P  
  Response.Write & rs.fields(i).name & ~(`MP<  
next F< dhG>E9  
Response.Write (hRg0Z=  
While Not Rs.Eof 1 .o0"  
  Response.Write sqRvnCD!  
  for i=0 to rs.fields.count -1 ,ZO?D|M1  
        Response.Write & Rs.Fields(i).Value &   S T4[d'|j  
  next [ p(0g;bx  
  Response.Write       89P7iSV#*  
  Rs.MoveNext cA| n*A-j<  
Wend 3#\C!T0y  
Set Rs = Nothing c{x:'@%/s'  
end if ld5+/"$  
  % > 60D6UW  
&b-&0 rTqz  
!2/o]_K@+  
XG5T`>Yl  
^(BE_<~  
转自: ASP教程采集
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
引用

引用
想找我?如果我即不在 石家庄经济学院论坛www.uebbs.net,也不在宿舍,那,我肯定是在去的路上

引用
描述
快速回复

您目前还是游客,请 登录注册
温馨提示:欢迎交流讨论,请勿纯表情、纯引用!
认证码:
验证问题:
3+5=?,请输入中文答案:八 正确答案:八