How to define a foreign key in a DB DB table?
From http://dev.mysql.com/doc/refman/5.1/en/innodb-foreign-key-constraints.html
SHOW CREATE TABLE tbl_name;
You can also display foreign key constraints for a table as follows:
SHOW TABLE OF STATUS FROM db_name LIKE 'tbl_name';
Source: https://habr.com/ru/post/1740301/More articles:Как вы отлаживаете исходный код c/С++ в linux с помощью emacs? - c++How to check website URL in Perl? - urlHow to use a variable in an awk expression - stringAbout variable templates - c ++OLEDate Java implementation - javaHow to integrate the GWT application into another web platform? - javascriptPHP line splitting - splitSQLServer Triggers - sqlSetpoint Extension Point DataContractJsonSerializer - jsonHow to unite users in Mercurial? - mercurialAll Articles