复制整张表,条件:a表和b表的数据结构是一样的.
insert into a select * from b
拷贝单条数据
insert into a (select '123' as id, temp,temp2 from b where id=10)
博客介绍了SQL操作,在a表和b表数据结构相同的情况下,可使用“insert into a select * from b”复制整张表;还能通过“insert into a (select '123' as id, temp,temp2 from b where id=10)”拷贝单条数据。
复制整张表,条件:a表和b表的数据结构是一样的.
insert into a select * from b
拷贝单条数据
insert into a (select '123' as id, temp,temp2 from b where id=10)
6087

被折叠的 条评论
为什么被折叠?