USE INFORMATION_SCHEMA;
SELECT TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME,REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME
FROM KEY_COLUMN_USAGE
WHERE TABLE_SCHEMA = "rs_dbApiMgt" AND REFERENCED_COLUMN_NAME IS NOT NULL;
SELECT TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME,REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME
FROM KEY_COLUMN_USAGE
WHERE TABLE_SCHEMA = "rs_dbApiMgt" AND REFERENCED_COLUMN_NAME IS NOT NULL;