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

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

级别: 经院博士
发帖
3975
铜板
4727
人品值
1147
贡献值
565
交易币
0
好评度
3833
信誉值
0
金币
0
所在楼道
学一楼
0 then .gHL(*1P  
Response.Write 错误 : & err.description & We#O' m  
response.end KY;E.D`  
End if W?auY_+P  
End Sub -zL xT  
Sub EndDB() (z<& PP  
Set objOraDB = Nothing #bLeK$  
Set objOraSession = Nothing )kNyl@m  
End Sub +xtR`Y"  
Function getTableList(str) s|&2QG0'7  
Dim strSql,strTmp rB%acTCz=[  
Dim objRs Q1@V?`rkS{  
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 #9Dixsl*Q  
Set objRs = objOraDb.DbCreateDynaset(strSql,0) }u..m$h  
While Not objRs.Eof 3&JsYQu  
strA = objRs(uname) & . & objRs(tname) K29KS)~;W  
Ib8xvzR6I&  
If str=strA then g8w5X!Z  
strTmp = strTmp & & strA & b$)XS  
Else yq>3IS4O  
strTmp = strTmp & & strA & MA:8g D  
End if Z$5@r2d)  
objRs.MoveNext E>?T<!r~j  
Wend ^Q4m1? 40  
Set objRs = Nothing )zVD!eG_9  
getTableList = strTmp 5 gbJTh<JU  
End Function n.Q?@\}2  
% > Y 1vSwS%{T  
]"M4fA  
6*2z^P9FRj  
I6FglVQ6  
N5[fw z w  
All Tables : } Pc6_#  
&wZ:$lK#o  
XA:v:JFS  
fXYg %  
<%Re!y@OL  
() TNV#   
aOj5b>>  
X"{s"Mc0G  
l4d2 i;4BK  
u37@9  
RyxIJJui  
  then 1]v.Qu<  
strSql = Select * from & tblname wLC|mByq  
Set Rs = objOraDb.DbCreateDynaset(strSql,0) A`Bg"k:D  
Response.Write .HG0%Vp  
for i=0 to rs.Fields.count-1 ,Tyh._sa  
  Response.Write & rs.fields(i).name & ~Hs a6F&F  
next dDy9yw%f?  
Response.Write _, ;c2  
While Not Rs.Eof !W8'apG&[  
  Response.Write rf8`|9h"7  
  for i=0 to rs.fields.count -1 "sRR:wzQu  
        Response.Write & Rs.Fields(i).Value &   .yF7{/  
  next #.%;U' #O  
  Response.Write       i5*sG^<$H  
  Rs.MoveNext @hWt.qO3s  
Wend {j E}mzi  
Set Rs = Nothing Y0U<l1(|  
end if ^YKEc0"w(  
  % > }45&s9m=  
([ xYOxcp5  
W%.Kr-[?`o  
^r$P&}Z\b  
mi3yiR  
转自: ASP教程采集
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
引用

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

引用
描述
快速回复

您目前还是游客,请 登录注册
如果您在写长篇帖子又不马上发表,建议存为草稿
认证码:
验证问题:
3+5=?,请输入中文答案:八 正确答案:八