From a162408275fa522d2f23701f7e03c6f39337caf1 Mon Sep 17 00:00:00 2001 From: caminsha Date: Sun, 17 Jul 2022 23:57:40 +0200 Subject: [PATCH] Helper script to show all the entries from St. Gallen --- script.sh | 2 ++ sql/show_sg.sql | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 sql/show_sg.sql diff --git a/script.sh b/script.sh index 393f0e2..22fbabb 100644 --- a/script.sh +++ b/script.sh @@ -4,6 +4,8 @@ if [[ $1 -eq "0" ]]; then sqlite3 test.db ".read sql/create_db.sql" elif [[ $1 -eq "1" ]]; then 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 sqlite3 test.db ".read sql/show_all.sql" fi diff --git a/sql/show_sg.sql b/sql/show_sg.sql new file mode 100644 index 0000000..44d52a0 --- /dev/null +++ b/sql/show_sg.sql @@ -0,0 +1,3 @@ +SELECT * +from customers +where CITY LIKE "St.%gallen";