Last active
November 1, 2017 17:48
-
-
Save davidjguru/6d64899e8943c559f727d28e8560cbd2 to your computer and use it in GitHub Desktop.
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
# Access to SQLite prompt | |
sqlite3; | |
# You're in sqlite> | |
# Open the database | |
.open /path/to/database/database.db | |
# Show databases in the current database connection | |
.database | |
# Show all the tables within the database | |
.tables | |
# Print an entire table | |
SELECT * FROM tablename; | |
# Print how is build a table | |
.schema tablename | |
# Closing session | |
.exit | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment