白板的微信
表:SELECT
TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME, REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAMEFROM
INFORMATION_SCHEMA.KEY_COLUMN_USAGEWHERE
REFERENCED_TABLE_SCHEMA = '' AND
REFERENCED_TABLE_NAME = '
TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME, REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAMEFROM
INFORMATION_SCHEMA.KEY_COLUMN_USAGEWHERE
REFERENCED_TABLE_SCHEMA = '' AND
REFERENCED_TABLE_NAME = '
REFERENCED_COLUMN_NAME = '';基本上,我们在WHERE子句中用引用_Column_name更改了引用_TABLE_NAME。