Skip to content

Commit

Permalink
add sql workshop
Browse files Browse the repository at this point in the history
  • Loading branch information
karlderkaefer committed Nov 19, 2023
1 parent 6ce7cd2 commit 930b8d7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions sql-basics/foreground.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,4 @@ until sqlite3 --version; do
sleep 1
done

# Create a sample database and table for the workshop
sqlite3 workshop.db "CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, name TEXT, age INTEGER);"

# Populate the table with sample data
sqlite3 workshop.db "INSERT INTO users (name, age) VALUES ('Alice', 30), ('Bob', 25), ('Charlie', 35);"

echo "SQL environment set up. You can now start interacting with your SQL database."
echo "SQL environment set up"

0 comments on commit 930b8d7

Please sign in to comment.