Answers for "how to assign foreign key in mysql"

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 "how to assign foreign key in mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language