Anonymous user
Table creation: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 1:
{{task}}
In this task, the goal is to create a table to
==[[
-- This is a comment
CREATE TABLE Address (▼
active bool not null default 't',
▲ )
age int2,
notes text
CREATE TABLE `Address` (▼
);
account_id int4 not null REFERENCES account,
created timestamp not null default now(),
▲ CREATE SEQUENCE address_seq start 100;
unique(account_id, note)
▲ addrID int4 PRIMARY KEY DEFAULT nextval('address_seq'),
▲ city varchar(25) not null,
▲ state varchar(2) not null,
);
|