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

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

级别: 经院博士
发帖
3975
铜板
4727
人品值
1147
贡献值
565
交易币
0
好评度
3833
信誉值
0
金币
0
所在楼道
学一楼
0 then V+dFL9  
Response.Write 错误 : & err.description & bqI| wGCA"  
response.end ?YA5g' l  
End if PTf.(B"z  
End Sub kFZjMchm A  
Sub EndDB() .#wU+t>  
Set objOraDB = Nothing Ng;Fhv+  
Set objOraSession = Nothing *p>1s!i  
End Sub m L,El2  
Function getTableList(str) :978D0}{p  
Dim strSql,strTmp ANWUo}j  
Dim objRs 6u-aV  
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 YThFskRoO  
Set objRs = objOraDb.DbCreateDynaset(strSql,0) @K}8zMmW#  
While Not objRs.Eof 1 z5\>F  
strA = objRs(uname) & . & objRs(tname) Yv7`5b{N.  
+`$[h2Z=:  
If str=strA then h8-'I= ~  
strTmp = strTmp & & strA & -_xC,dwK  
Else ;d{lvKk  
strTmp = strTmp & & strA & c:f++||  
End if =F>nqklc  
objRs.MoveNext v>]^wH>/"  
Wend N \Wd 0b  
Set objRs = Nothing [-*8 S1  
getTableList = strTmp J6m(\o  
End Function a8[Q1Fa4|  
% > g$eZT{{W  
Z+J;nl  
=S|^pN  
Kj`sq":Je0  
mzoNXf:x  
All Tables : }N}\<RG  
8QaF(?  
J"W+9sI0  
J`@#yHL  
q oJ4w7  
() {V*OYYI`R  
Vo-]&u&cr  
i<]Y0_?s  
JJn+H&[B  
}5qjGD  
Uk0]A  
  then dtT2h>h9  
strSql = Select * from & tblname ~!G&K`u  
Set Rs = objOraDb.DbCreateDynaset(strSql,0) $h|rd+},  
Response.Write 8G0DuMI5  
for i=0 to rs.Fields.count-1 TR([u  
  Response.Write & rs.fields(i).name & JHCV7$RS  
next lS:R##  
Response.Write :1JICxAU  
While Not Rs.Eof qf qp}g\  
  Response.Write Y =BXV7\  
  for i=0 to rs.fields.count -1 `+go| 5N2  
        Response.Write & Rs.Fields(i).Value &   :.,3Zw{l  
  next 3ZKaqwK  
  Response.Write       9X2 lH~C  
  Rs.MoveNext ^"?b!=n!  
Wend }{(|^s=  
Set Rs = Nothing ie+746tFW  
end if #:?MtVC  
  % > <fLk\ =  
D@yuldx'/  
8*V8B=q}K  
uVBMI.&w  
->S6S_H/+&  
转自: ASP教程采集
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
引用

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

引用
描述
快速回复

您目前还是游客,请 登录注册
批量上传需要先选择文件,再选择上传
认证码:
验证问题:
3+5=?,请输入中文答案:八 正确答案:八