Answers for "how to create foreign key in postgresql"

SQL
1

postgre alter table foreign key

ALTER TABLE distributors ADD CONSTRAINT distfk FOREIGN KEY (address) REFERENCES addresses (address) MATCH FULL;
Posted by: Guest on June-07-2021
2

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
);
Posted by: Guest on January-15-2021

Code answers related to "how to create foreign key in postgresql"

Code answers related to "SQL"

Browse Popular Code Answers by Language