Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql on duplicate key update get value from values

INSERT INTO `tableName` (`a`,`b`,`c`) VALUES (1,2,3)
ON DUPLICATE KEY UPDATE `a`=VALUES(`a`), `b`=VALUES(`b`), `c`=VALUES(`c`);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #duplicate #key #update #values
ADD COMMENT
Topic
Name
9+8 =