Skip to content

Instantly share code, notes, and snippets.

@bencooling
Created July 23, 2013 11:53
Show Gist options
  • Save bencooling/6061792 to your computer and use it in GitHub Desktop.
Save bencooling/6061792 to your computer and use it in GitHub Desktop.
sqlite3 commands
# Open database
sqlite3 mydata.db
# Select rows from table
SELECT * from memos;
# Delete table
DROP TABLE memos;
# Truncate table (Delete every row)
DELETE FROM migrations;
# Show table structure
PRAGMA table_info(users);
# meta commands
.tables
.exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment