Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

primary key auto increment in postgresql

By simply setting our id column as SERIAL with PRIMARY KEY attached, Postgres will handle all the complicated behind-the-scenes work and automatically increment our id column with a unique, primary key value for every INSERT .
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #primary #key #auto #increment #postgresql
ADD COMMENT
Topic
Name
9+1 =