Skip to content

Instantly share code, notes, and snippets.

@tosbourn
Last active April 21, 2017 15:34
Show Gist options
  • Save tosbourn/a9c5e954f4c8f8de6dde379338924e67 to your computer and use it in GitHub Desktop.
Save tosbourn/a9c5e954f4c8f8de6dde379338924e67 to your computer and use it in GitHub Desktop.
  • Always uppercase actions
  • Always backtick tables
  • Always use != for "not equals to"
  • Always give an alias to a table
SELECT a.name FROM `aTable` a WHERE a.id != 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment