Created
November 6, 2018 11:12
-
-
Save iamshanto/18dd3946096364a227db325ff4e4215f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- https://blog.bubble.ro/how-to-make-multiple-updates-using-a-single-query-in-mysql/ | |
UPDATE mytable | |
SET (title='Great Expectations' WHERE id='1'), | |
(title='War and Peace' WHERE id='2'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment