haskell-relational-record/doc/slide/Haskell-Day-201609/haskell-day.sql
2016-09-14 19:32:21 +09:00

18 lines
329 B
SQL

CREATE SCHEMA IF NOT EXISTS EXAMPLE;
CREATE TABLE EXAMPLE.person
( name VARCHAR(64) NOT NULL
, age INTEGER NOT NULL
, family VARCHAR(64) NOT NULL
, PRIMARY KEY(name)
);
CREATE TABLE EXAMPLE.birthday
( name VARCHAR(64) NOT NULL
, day DATE NOT NULL
, PRIMARY KEY(name)
);