解决方法
您可以在information_schema.table_constraints和information_schema.constraint_column_usage中通过检查表上的多行PRIMARY KEY约束来挖掘该信息,例如:
SELECT col.table_name FROM information_schema.table_constraints tc JOIN information_schema.constraint_column_usage col ON col.constraint_name = tc.constraint_name AND col.table_name = tc.table_name AND tc.constraint_type = 'PRIMARY KEY ' GROUP BY col.table_name HAVING COUNT(*) > 1
@L_301_0@.