Last active
December 17, 2015 03:48
-
-
Save jianhu/5545770 to your computer and use it in GitHub Desktop.
This file contains 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
UPDATE table SET field='C', field2='Z' WHERE id=3; | |
INSERT INTO table (id, field, field2) | |
SELECT 3, 'C', 'Z' | |
WHERE NOT EXISTS (SELECT 1 FROM table WHERE id=3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment