首頁html
問題mysql
精選sql
用戶數據庫
網絡
機構合做oop
知道福利大數據
特點htm
我來答 blog
分享
舉報瀏覽 31689 次2個回答
ice千
推薦於2017-10-04
1。表結構相同的表,且在同一數據庫(如,table1,table2) Sql :insert into table1 select * from table2 (徹底複製) insert into table1 select distinct * from table2(不復制重複紀錄) insert into table1 select top 5 * from table2 (前五條紀錄) 2。 不在同一數據庫中(如,db1 table1,db2 table2) sql: insert into db1..table1 select * from db2..table2 (徹底複製) insert into db1..table1 select distinct * from db2table2(不復制重複紀錄) insert into tdb1..able1 select top 5 * from db2table2 (前五條紀錄)