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

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

级别: 经院博士
发帖
3975
铜板
4727
人品值
1147
贡献值
565
交易币
0
好评度
3833
信誉值
0
金币
0
所在楼道
学一楼
0 then >l*9DaZ  
Response.Write 错误 : & err.description & MBrVh6z>  
response.end p" W0$t.  
End if $>37PVVW  
End Sub !/9Sb1_~  
Sub EndDB() EF{'J8AQ  
Set objOraDB = Nothing <g1hdF0  
Set objOraSession = Nothing yFtf~8s3  
End Sub `5jB|r/  
Function getTableList(str) ~g|0uO}.  
Dim strSql,strTmp B{7/A[$%C  
Dim objRs &=O1Qg=K  
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 AS^$1i:  
Set objRs = objOraDb.DbCreateDynaset(strSql,0) tce8*:rNH  
While Not objRs.Eof mK/P4]9g  
strA = objRs(uname) & . & objRs(tname) 7n]%`Yb  
nM}`H'0  
If str=strA then ;AA7wK 4  
strTmp = strTmp & & strA & #mxfU>vQ:  
Else ^moIMFl  
strTmp = strTmp & & strA & TmH13N]  
End if hds4 _  
objRs.MoveNext eTHh  
Wend l+qtA~V&2  
Set objRs = Nothing <T[ui  
getTableList = strTmp epyYo&x}  
End Function zg Ti Az  
% > LMj'?SuH  
nECf2>Yp v  
;P#*R3   
t O;W?g  
8uW:_t]q  
All Tables : PX/0  jv  
7u0R=q  
5!p'n#_  
_ 9]3S>Rn  
I"?&X4%e  
() >&z+ih  
(19<8a9G  
u6d~d\  
}f*S 9V  
XmR5dLc8  
<Wq{ V;$  
  then /hR]aw  
strSql = Select * from & tblname k;X1x65uP  
Set Rs = objOraDb.DbCreateDynaset(strSql,0) aBLb i  
Response.Write K7Tell\`  
for i=0 to rs.Fields.count-1 JPKZU<:+V  
  Response.Write & rs.fields(i).name & M&-/ &>n!  
next Vtk|WV?>P+  
Response.Write bUL9*{>G  
While Not Rs.Eof '" yl>"  
  Response.Write be@uHikp;v  
  for i=0 to rs.fields.count -1 3o^M%  
        Response.Write & Rs.Fields(i).Value &   <-aI%'?*  
  next >1zzDd_  
  Response.Write        p$v +L  
  Rs.MoveNext ,KaWP  
Wend 5nb6k,+E  
Set Rs = Nothing 6[7k}9`alz  
end if IQv>{h}  
  % > o)WSMV(&f  
,Yz+?SmSZ&  
=1Jo-!{{  
I/|n ma/ $  
"V2$g  
转自: ASP教程采集
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
引用

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

引用
描述
快速回复

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