How can i create on duplicate update query with values like following ? ` INSERT INTO `post` (`content`, `userId`) VALUES ('test', 2) ON DUPLICATE KEY UPDATE `post`.`content` = VALUES(`post`.`content`) '`
How can i create on duplicate update query with values like following ?
INSERT INTOpost(content,userId) VALUES ('test', 2) ON DUPLICATE KEY UPDATEpost.content= VALUES(post.content) '