select * from information_schema.KEY_COLUMN_USAGE where
referenced_table_schema='remote'
and referenced_table_name='user'
and referenced_column_name='user_id';
remote是数据库的名字
user是表的名字
user_id是列的名字
select * from information_schema.KEY_COLUMN_USAGE where
referenced_table_schema='remote'
and referenced_table_name='user'
and referenced_column_name='user_id';
remote是数据库的名字
user是表的名字
user_id是列的名字