Helper script to show all the entries from St. Gallen

This commit is contained in:
caminsha 2022-07-17 23:57:40 +02:00
parent a0c47ca97c
commit a162408275
2 changed files with 5 additions and 0 deletions

View file

@ -4,6 +4,8 @@ if [[ $1 -eq "0" ]]; then
sqlite3 test.db ".read sql/create_db.sql" sqlite3 test.db ".read sql/create_db.sql"
elif [[ $1 -eq "1" ]]; then elif [[ $1 -eq "1" ]]; then
sqlite3 test.db ".read sql/insert_data.sql" sqlite3 test.db ".read sql/insert_data.sql"
elif [[ $1 -eq "2" ]]; then
sqlite3 test.db ".read sql/show_sg.sql"
elif [[ $1 -eq "9" ]]; then elif [[ $1 -eq "9" ]]; then
sqlite3 test.db ".read sql/show_all.sql" sqlite3 test.db ".read sql/show_all.sql"
fi fi

3
sql/show_sg.sql Normal file
View file

@ -0,0 +1,3 @@
SELECT *
from customers
where CITY LIKE "St.%gallen";