Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

find the all the constraints in a specific table

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: #find #constraints #specific #table
ADD COMMENT
Topic
Name
5+5 =