經安全檢測,此網站為安全網站,請放心前往原始網址!

[SQL] INSERT 跟 REPLACE (加入資料至資料表) | Victor Gau

INSERT 主要是用來在資料表中加入資料。 REPLACE 的用法與 INSERT 相似,兩者的差別在於發生鍵值衝突時,INSERT... ... (假設 products 裡面只有 productID 跟 productName 兩個欄位,且 productID 為 Auto increment,則設為 NULL,productID 就會自動增號。

www.victorgau.com

網址安全性掃描由 google 提供