Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgresql inheritance

CREATE TABLE cities (
  name       text,
  population real,
  elevation  int     -- (in ft)
);

CREATE TABLE capitals (
  state      char(2) UNIQUE NOT NULL
) INHERITS (cities);
Source by www.postgresql.org #
 
PREVIOUS NEXT
Tagged: #postgresql #inheritance
ADD COMMENT
Topic
Name
1+9 =