摘要:
查找表中的主键SELECTk.column_nameFROMinformation_schema.table_constraintstJOINinformation_schema.key_column_usagekUSING(constraint_name,table_schema,table_name)WHEREt.constraint_type='PRIMARYKEY'ANDt.table_schema='db'ANDt.table_name=tbl' 阅读全文