Search
 
SCRIPT & CODE EXAMPLE
 

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)
);
Comment

PREVIOUS NEXT
Code Example
Sql :: snap remove mysql workbench 
Sql :: how to use group_concat in sql server 
Sql :: mysql concatenate null 
Sql :: sql select sum group by id laravel 
Sql :: load sql into mamp 
Sql :: csv to sqlite python 
Sql :: copy table in mysql with data 
Sql :: oracle sql create table from select 
Sql :: dateadd in sql 
Sql :: postgres check for foreign key 
Sql :: cheatsheet for sql 
Sql :: sql delete row with auto increment 
Sql :: SQL CREATE UNIQUE INDEX for Unique Values 
Sql :: sql server list locks 
Sql :: add current timestamp in mysql 
Sql :: datediff 
Sql :: create sequence postgres 
Sql :: oracle show procedures 
Sql :: mysql regexp_replace remove html tag 
Sql :: sql pagination 
Sql :: describe in sqlite3 
Sql :: default constraint in ms sql 
Sql :: sql count number of rows after group by 
Sql :: jwt laravel 
Sql :: kill session inactive oracle 
Sql :: mysql find duplicates in same table 
Sql :: how to install sql in anaconda 
Sql :: creating postgresSQL database using the the shell 
Sql :: download sql server 2016 
Sql :: get last 50 rows sql 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =