Skip to content

Instantly share code, notes, and snippets.

@saibotsivad
Created June 2, 2014 16:30
Show Gist options
  • Save saibotsivad/88cfbb844bb4492ed0bd to your computer and use it in GitHub Desktop.
Save saibotsivad/88cfbb844bb4492ed0bd to your computer and use it in GitHub Desktop.
Commonly used MySQL commands that I keep forgetting for some reason.
# insert from a select query
INSERT INTO table (column1,column2)
SELECT column1,column2
FROM ...
# dropping tables
DROP TABLE IF EXISTS tablename;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment