Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

psql create table foreign keys

# id_user is the primary key of the table users:
create table lists(
id_list serial not null primary key,
id_user int references users(id_user),
is_temp int
);
Source by tableplus.com #
 
PREVIOUS NEXT
Tagged: #psql #create #table #foreign #keys
ADD COMMENT
Topic
Name
7+1 =