跨數據庫複製表的數據

//在B.db數據庫下執行如下兩條語句
//1、連接另一個數據庫
"attach database '{System.Environment.CurrentDirectory}\\A.db' as A"
//2、複製連接數據庫的數據
"insert into B.table_b select * from A.table_a"

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章