当前位置:
首页 >
首页 > 利用sql语句复制一条或多条记录 文章详情
利用sql语句复制一条或多条记录
分类:首页
标签Tags:利用,sql,语句,复制,一条,多条,记录,insert,article,id,class,title,content,select,自动,编号,就把,改为
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为数字类型,则去掉单引号.
以上就是【利用sql语句复制一条或多条记录】的全部内容了,欢迎留言评论进行交流!
与本文相关的软件