/ Published in: MySQL

Expand |
Embed | Plain Text
INSERT INTO `tableName` VALUES (?,?,?,'-1',?,'0') ON DUPLICATE KEY UPDATE `id` = ?, `foo` = ?, `bar` = ?
You need to login to post a comment.
Zwendel on 10/27/09
insert key unique duplicate update
4 people have marked this snippet as a favorite
dantreacy
kubaitis
kidmizere
virendrakryadav
INSERT INTO `tableName` VALUES (?,?,?,'-1',?,'0') ON DUPLICATE KEY UPDATE `id` = ?, `foo` = ?, `bar` = ?
You need to login to post a comment.