利用sql语句复制一条或多条记录
程序员文章站
2022-06-23 18:45:28
insert into article (id,class,title,content) select id,'2',ti...
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为数字类型,则去掉单引号.
上一篇: windows批处理命令教程
下一篇: 用DOS命令快速把整个系统情况摸个清