ASP +SQL2000 插入语句

2024-12-16 03:51:17
推荐回答(3个)
回答1:

bh应该是自增吧,可以不用写

set conn = server.createobject("adodb.connection")
set rs=server.createobject("adodb.recordset")
sql="INSERT INTO 待发表 (name,mail) SELECT 字段1, 字段2 FROM vn_mailaddress where classid='"&mailclassid&"'"
rs.open sql,conn,1,1

回答2:

INSERT INTO 待发表 (bh, name,mail) SELECT ‘2010121212’,字段1, 字段2 FROM vn_mailaddress where classid='"&mailclassid&"

回答3:

就这样简单..
INSERT INTO 待发表 (bh, name,mail) SELECT '2010121212 ',字段1, 字段2 FROM vn_mailaddress where classid='"&mailclassid&"'