Run query against SQLite database from terminal
You can run SQL query against SQLite database straight from terminal using echo and pipe. Like this:
echo "DROP TABLE example;" | sqlite3 ./database.db3
You can run SQL query against SQLite database straight from terminal using echo and pipe. Like this:
echo "DROP TABLE example;" | sqlite3 ./database.db3