brianc / node-sql

SQL generation for node.js
MIT License
1.05k stars 191 forks source link

On duplicate query with values #387

Open rjsaran opened 6 years ago

rjsaran commented 6 years ago

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) '