如果id为自动编号,就把改为:
insert into article (class,title,content) select '2',title,content from article where class='1'
如果class为数字类型,则去掉单引号.
更多文章请关注《万象专栏》
转载请注明出处:https://www.wanxiangsucai.com/read/cv165411
更多文章请关注《万象专栏》
转载请注明出处:https://www.wanxiangsucai.com/read/cv165411