Last active
February 4, 2019 07:33
-
-
Save bcremer/29f095ff68648026de2397b6163f8459 to your computer and use it in GitHub Desktop.
MySQL alternative insert syntax
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
-- Traditional insert | |
INSERT INTO `campaigns` (name, active) VALUES ('foobar', 1⁾; | |
-- Alternative insert | |
INSERT INTO `campaigns` SET name = 'foobar', active = 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment