- 這個學習範例所需的資料庫環境,可以參閱:
- 取得SQLite版本的Chinook範例資料庫 http://blog.bod.idv.tw/2019/09/sqlitechinook.html
- 用SQLiteStudio建立SQL學習環境 http://blog.bod.idv.tw/2019/09/sqlitestudiosql.html
- 來源資料庫:Chinook,有11個資料表,每個資料表都有資料
目的資料庫:TestWind ,沒有資料表、沒有資料 - 選取Chinook 的 Artist 資料表,按住滑鼠左鍵,拖曳到 TestWind 的 Tables 位置,放開左鍵。
勾選:include data, include indexes, include triggers
點選:Copy選項
- Referenced tables的提醒:
SQLite Studio 提醒 Artist 這個資料表被 Albumn, PlaylistTrack, Track, InvoiceLine 等資料 Reference了,提示:要不要一併匯入這些資料表?
這裡選擇:No,只Copy Artist資料表
- 確認複製成功。
沒有留言:
張貼留言