常用SQL语法

SQL 大全

 
 
将一张表的数据插入到另一张表
 
1.如果列名相同
     insert into tab_user2 select * from tab_user where site=17;
 
2.指定列名插入
     insert into tab_user2(id,account) select id,account from tab_user where site=3;
原文地址:https://www.cnblogs.com/svennee/p/4080890.html