常用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;
posted @ 2014-11-07 11:37  程序员斯文  阅读(136)  评论(0编辑  收藏  举报