Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgres foreign key multiple columns

CREATE TABLE t1 (
  a integer PRIMARY KEY,
  b integer,
  c integer,
  FOREIGN KEY (b, c) REFERENCES other_table (c1, c2)
);
Source by www.postgresql.org #
 
PREVIOUS NEXT
Tagged: #postgres #foreign #key #multiple #columns
ADD COMMENT
Topic
Name
6+3 =