Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mariadb add foreign key

alter table group_a 
add constraint fk_b_in_a
foreign key(`b_id`) 
    references group_b(`b_id`)
    on delete set null
    on update set null;
Source by www.mariadbtutorial.com #
 
PREVIOUS NEXT
Tagged: #mariadb #add #foreign #key
ADD COMMENT
Topic
Name
4+4 =