CREATE TABLE table1
(
id int4 NOT NULL DEFAULT nextval('table_id_seq'::regclass),
name text,
CONSTRAINT table_id PRIMARY KEY (id)
)
WITHOUT OIDS;
ALTER TABLE table1 OWNER TO postgres;
Автор оригинала: partizan
CREATE TABLE table1
(
id int4 NOT NULL DEFAULT nextval('table_id_seq'::regclass),
name text,
CONSTRAINT table_id PRIMARY KEY (id)
)
WITHOUT OIDS;
ALTER TABLE table1 OWNER TO postgres;