資料庫名稱:MSSQL
資料庫版本:SQL 2008以上
內容/問題描述:其實只是一個語法的描述而已,就是
Insert into table (A,B,C) values (@A,@B,@C)
跟
Update table set [email protected], [email protected], [email protected] where pk=pk
為什麼insert 語法不設計成update這樣,可以用欄位的對應,感覺欄位一多
就很麻煩,有人知道為什麼嗎?
覺得應該如下比較好
insert into table set [email protected], [email protected], [email protected]
作者:
LinNine (0-9)
2018-02-06 19:30:00猜測是塞多筆資料的時候比較方便insert into tbl (A,B,C) values (a1,b1,c1),(a2,b2,c2), ...