Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

show constraints mysql

select COLUMN_NAME, CONSTRAINT_NAME, REFERENCED_COLUMN_NAME, REFERENCED_TABLE_NAME
from information_schema.KEY_COLUMN_USAGE
where TABLE_NAME = 'yourTableName';

Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #show #constraints #mysql
ADD COMMENT
Topic
Name
4+5 =