首页 电脑 电脑学堂 查看内容

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

2009-9-25 16:35 746 0

摘要:   sql 复制记录   insert into article (id,class,title,content) select id,'2',title,content from article ...

  sql 复制记录   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为数字类型,则去掉单引号.
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部