Answers for "mysql add foreign key constraint"

SQL
6

alter table add foreign key mysql

ALTER TABLE orders
ADD 
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE;
Posted by: Guest on May-29-2020
5

drop foreign key

ALTER TABLE table_name
DROP CONSTRAINT fk_name;
Posted by: Guest on June-04-2020

Code answers related to "mysql add foreign key constraint"

Code answers related to "SQL"

Browse Popular Code Answers by Language