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";