求教:ASP将表a的code字段按时间先后顺序依次插入到表b的code字段??
发布网友
发布时间:2022-05-19 13:00
我来回答
共1个回答
热心网友
时间:2023-10-12 07:29
Set Rs=Conn.execute("Select * From [a] Order by [time1]")
Do While Not Rs.Eof
Conn.Execute "Insert Into [b] (code,name,subname,time2) Values ('"&Rs("code")&"','"&Rs("name")&"','','"&Now()&"')"
Rs.Movenext
Loop
Set Rs=Nothing