复制整张表,条件: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语句复制整张表,即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)
3666