现在的位置: 首页 > 综合 > 正文

如何一次向多个表中写入数据示例

2014年09月05日 ⁄ 综合 ⁄ 共 264字 ⁄ 字号 评论关闭

set rs=server.createobject("ADODB.RECORDSET")

rs.open "表1",conn,1,3
rs.addnew
rs("username") = yourname
rs.update
rs.close

rs.open "表2",conn,1,3
rs.addnew
rs("username") = yourname
rs.update
rs.close

rs.open "表3",conn,1,3
rs.addnew
rs("username") = yourname
rs.update
rs.close

set rs = nothing

抱歉!评论已关闭.