常用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;
將一張表的數據插入到另一張表 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;
總結
- 上一篇: linux sudo命令详解
- 下一篇: 天黑的时候,我又想起那首歌