Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mySql on duplicate key update

INSERT INTO table (column_list)
VALUES (value_list)
ON DUPLICATE KEY UPDATE
   c1 = v1, 
   c2 = v2,
   ...;
Source by www.mysqltutorial.org #
 
PREVIOUS NEXT
Tagged: #mySql #duplicate #key #update
ADD COMMENT
Topic
Name
9+7 =