CREATE TABLE weather (
city varchar(80),
temp_lo int, -- low temperature
temp_hi int, -- high temperature
prcp real, -- precipitation
date date
);
mydb=# \d
Did not find any relations.
mydb=# CREATE TABLE weather (
mydb(# city varchar(80),
mydb(# temp_lo int, -- low temperature
mydb(# temp_hi int, -- high temperature
mydb(# prcp real, -- precipitation
mydb(# date date
mydb(# );
CREATE TABLE
mydb=# \d
List of relations
Schema | Name | Type | Owner
--------+---------+-------+----------
public | weather | table | postgres
(1 row)