sqlite-things/script.sh

10 lines
225 B
Bash
Raw Normal View History

2022-07-15 20:16:25 +00:00
#!/bin/bash
if [[ $1 -eq "0" ]]; then
sqlite3 test.db ".read create_db.sql"
elif [[ $1 -eq "1" ]]; then
sqlite3 test.db ".read insert_data.sql"
elif [[ $1 -eq "9" ]]; then
sqlite3 test.db ".read show_all.sql"
fi