Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgre sql create table

CREATE TABLE cities (
    city_id serial PRIMARY KEY,
    city_name VARCHAR (255) NOT NULL,
    population INT NOT NULL CHECK (population >= 0)
);

Source by www.postgresqltutorial.com #
 
PREVIOUS NEXT
Tagged: #postgre #sql #create #table
ADD COMMENT
Topic
Name
3+9 =