Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

add foreign key constraint in postgresql

ALTER TABLE orders
    ADD CONSTRAINT fk_orders_customers FOREIGN KEY (customer_id) REFERENCES customers (id);
Source by tableplus.com #
 
PREVIOUS NEXT
Tagged: #add #foreign #key #constraint #postgresql
ADD COMMENT
Topic
Name
2+9 =