VB6.0使用ADO对象连接数据库:[2]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 shuyi 的 blog

3. 取查询结果集

global rs as new adodb.recordset

global ps as new adodb.recordset

if rs.state = adstateopen and not isempty(adstateopen) then rs.close

     rs.open sqlstr, dbconnect, adopenkeyset

4. 执行sql语句

dbconn.execute sqlstr

5. 关闭数据库

本文关键:Ado
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top