Skip to content

sql create

Creating table in postgresql

Quick answer: Use PostgreSQL’s CREATE TABLE statement to define a new table, its columns, data types and constraints. Example: CREATE TABLE employees (employee_id integer PRIMARY KEY, full_name text NOT NULL, hired_on date);. CREATE TABLE creates a relation in a schema and a corresponding composite row type. The name must not conflict with another relation in that schema, and the composite type name must also be available. Schema-qualified names such as… Read More »CREATE TABLE in PostgreSQL: Syntax, Constraints and Examples

CREATE TABLE in PostgreSQL: Syntax, Constraints and Examples