Chugging through the 'basics' tutorial
mostly for fun ... and to see if I'm missing any foundational bits.
This commit is contained in:
12
postgresql/tutorial/weather/init.sql
Normal file
12
postgresql/tutorial/weather/init.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE weather (
|
||||
city varchar(80),
|
||||
temp_lo int,
|
||||
temp_hi int,
|
||||
prcp real,
|
||||
date date
|
||||
);
|
||||
|
||||
CREATE TABLE cities (
|
||||
name varchar(80),
|
||||
location point
|
||||
);
|
2
postgresql/tutorial/weather/wipe.sql
Normal file
2
postgresql/tutorial/weather/wipe.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
DROP TABLE IF EXISTS weather;
|
||||
DROP TABLE IF EXISTS cities;
|
Reference in New Issue
Block a user