在SQL產生insert程式碼
這次的題目是,如何在SQL產生insert的程式碼
在Oracle基本上就有這個功能而且操作很直覺,那麼SQL當然也有這個功能,它的關鍵字:SQL Server、Insert Scripts
當然別的部落格也有這個東西的教學,我看到的是英文介面,就用中文介面來看一看:
1、資料庫右鍵 > 工作 > 產生指令碼

2、選擇物件,選資料表

3、在這個畫面選進階

4、這個畫面在「要編寫指令碼的資料類型」中選擇「結構描述與資料」的話就可以得到前述資料表資料的insert script語法,

5、最後是產出指令碼,這是schema碼還有insert scripts的版本

最後拿這個程式碼就可以把資料移動到另一台sql server了
在Oracle基本上就有這個功能而且操作很直覺,那麼SQL當然也有這個功能,它的關鍵字:SQL Server、Insert Scripts
當然別的部落格也有這個東西的教學,我看到的是英文介面,就用中文介面來看一看:
1、資料庫右鍵 > 工作 > 產生指令碼

2、選擇物件,選資料表

3、在這個畫面選進階

4、這個畫面在「要編寫指令碼的資料類型」中選擇「結構描述與資料」的話就可以得到前述資料表資料的insert script語法,

5、最後是產出指令碼,這是schema碼還有insert scripts的版本

最後拿這個程式碼就可以把資料移動到另一台sql server了
沒有留言:
張貼留言