Skip to content

Instantly share code, notes, and snippets.

@bcremer
Last active February 4, 2019 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcremer/29f095ff68648026de2397b6163f8459 to your computer and use it in GitHub Desktop.
Save bcremer/29f095ff68648026de2397b6163f8459 to your computer and use it in GitHub Desktop.
MySQL alternative insert syntax
-- 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