從不一樣的表複製html
insert into 表1 select * from 表2 where id =1
同一張表中複製(無主鍵)bash
insert into 表1 select * from 表2 where id =1
同一張表中複製(有主鍵)ide
insert into 表1(字段1,字段2,字段3) select 字段1,字段2,字段3 from 表1 where id=1
原文地址:http://blog.sina.com.cn/s/blog_4586764e0100de58.htmlhtm