当前位置: 移动技术网 > IT编程>脚本编程>VBScript > 利用sql语句复制一条或多条记录

利用sql语句复制一条或多条记录

2017年12月12日  | 移动技术网IT编程  | 我要评论

4399欢乐斗地主,tnt法老陵墓,9c8831

insert into article (id,class,title,content) select id,'2',title,content from article where class='1' 

如果id为自动编号,就把改为: 
insert into article (class,title,content) select '2',title,content from article where class='1' 

如果class为数字类型,则去掉单引号.

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网