Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

PostgreSQL foreign key constraint syntax

[CONSTRAINT fk_name]
   FOREIGN KEY(fk_columns) 
   REFERENCES parent_table(parent_key_columns)
   [ON DELETE delete_action]
   [ON UPDATE update_action]
Code language: CSS (css)
Source by www.postgresqltutorial.com #
 
PREVIOUS NEXT
Tagged: #PostgreSQL #foreign #key #constraint #syntax
ADD COMMENT
Topic
Name
8+2 =