Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql foreign key constraint

ALTER TABLE `tabl`
  ADD CONSTRAINT `constraint_name` FOREIGN KEY (`column`) REFERENCES `table2` (`id`) ON DELETE CASCADE;
Source by www.mysqltutorial.org #
 
PREVIOUS NEXT
Tagged: #mysql #foreign #key #constraint
ADD COMMENT
Topic
Name
4+3 =