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

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

级别: 经院博士
发帖
3975
铜板
4727
人品值
1147
贡献值
565
交易币
0
好评度
3833
信誉值
0
金币
0
所在楼道
学一楼
0 then n2} (Pt.  
Response.Write 错误 : & err.description & WoM;)Q  
response.end -]el_:H  
End if E|{(O  
End Sub %"-bG'Yc  
Sub EndDB() 9<n2-l|)  
Set objOraDB = Nothing Ln:6@Ok)5%  
Set objOraSession = Nothing $inlI_  
End Sub fwQVxJe  
Function getTableList(str) YBh|\  
Dim strSql,strTmp ,]`|2j  
Dim objRs ~_Q~AOFM  
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 =~zsah6N  
Set objRs = objOraDb.DbCreateDynaset(strSql,0) hr$Wt ?B  
While Not objRs.Eof }`KK  
strA = objRs(uname) & . & objRs(tname) )X |[ jP  
ebno:)  
If str=strA then /2^"c+/'p  
strTmp = strTmp & & strA & ;)~}/nR<a  
Else =LXjq~p  
strTmp = strTmp & & strA & YP E1s  
End if "5<:Dj/W  
objRs.MoveNext .3 >"qv  
Wend |w5m2Z  
Set objRs = Nothing S[ch/  
getTableList = strTmp n*A?>NV  
End Function 37apOK4+  
% > #($~e|  
V>Dqw!  
^h\(j*/#X  
#[ f]-c(!  
b@QCdi,u  
All Tables : <fHJ9(5$V  
7 Tb[sc'  
^'9.VVyz  
w*?SGW  
dG&^M ".(  
() >{6U1ft):  
~c,CngeL0  
nuKcq!L  
"@z X{^:  
^H"o=K8=  
&F- \t5X=i  
  then r>: ~!o*  
strSql = Select * from & tblname {W+IUvn  
Set Rs = objOraDb.DbCreateDynaset(strSql,0) 9xi nX-x;n  
Response.Write J':X$>E|  
for i=0 to rs.Fields.count-1 r[?GO"ej5  
  Response.Write & rs.fields(i).name & dx@|M{jz'  
next @C-03`JWuK  
Response.Write c@3mfc{  
While Not Rs.Eof =yF]#>Ah  
  Response.Write :V3z`}Rl  
  for i=0 to rs.fields.count -1 za%gD  
        Response.Write & Rs.Fields(i).Value &   zu3Fi = |0  
  next H )51J:4  
  Response.Write       Y5CDdn  
  Rs.MoveNext l~]D|92  
Wend l-Be5?|{_  
Set Rs = Nothing ]p8 zT|bv  
end if * N]^(+/A  
  % > .k:heN2-x  
">._&8KkE0  
0iYo&q'n  
_01wRsm%2  
;6eBfMhL  
转自: ASP教程采集
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
引用

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

引用
描述
快速回复

您目前还是游客,请 登录注册
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
认证码:
验证问题:
3+5=?,请输入中文答案:八 正确答案:八