您现在的位置是:网站首页> 编程资料编程资料
利用sql语句复制一条或多条记录_vbs_
2023-05-25
368人已围观
简介 利用sql语句复制一条或多条记录_vbs_
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为数字类型,则去掉单引号.
如果id为自动编号,就把改为:
insert into article (class,title,content) select '2',title,content from article where class='1'
如果class为数字类型,则去掉单引号.
