Last active
August 6, 2022 21:54
-
-
Save feliperomero3/f18b73316d5a43d4442be6fce67abeca to your computer and use it in GitHub Desktop.
Sqlite3 CLI commands
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
REM Export table to CSV file | |
sqlite3 -header -csv "backup 2022-03-14 173525.mdb" "SELECT * FROM transactions" > "transactions.csv" | |
REM Get schema information | |
sqlite3 -header -csv "backup 2022-03-14 173525.mdb" "PRAGMA table_info(transactions)" | |
REM Do this to enter Sqlite "REPL" or "interactive" mode (exit with .exit) | |
sqlite3 "backup 2022-03-14 173525.mdb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment