2个回答
展开全部
给个范例你:
dim conn
dim rs1
dim rs2
set conn = new adodb.connection
conn.open "连接字符串"
set rs1 = conn.execute("select * from 表1")
set rs2 = conn.execute("select * from 表2")
while not rs1.eof
rs2.AddNew
rs2(1).value = rs1(1).value
rs2(2).value = rs1(2).value
.
.
.
rs2.Update
rs1.MoveNext
wend
rs1.Close
rs2.Close
conn.Close
set rs1 = nothing
set rs2 = nothing
set conn = nothing
dim conn
dim rs1
dim rs2
set conn = new adodb.connection
conn.open "连接字符串"
set rs1 = conn.execute("select * from 表1")
set rs2 = conn.execute("select * from 表2")
while not rs1.eof
rs2.AddNew
rs2(1).value = rs1(1).value
rs2(2).value = rs1(2).value
.
.
.
rs2.Update
rs1.MoveNext
wend
rs1.Close
rs2.Close
conn.Close
set rs1 = nothing
set rs2 = nothing
set conn = nothing
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询