mysql 查询库名,表名,主键名
select table_schema, table_name,column_name from INFORMATION_SCHEMA.KEY_COLUMN_USAGE t where t.table_schema='HIS466'
mysql 查询库名,表名,主键名
select table_schema, table_name,column_name from INFORMATION_SCHEMA.KEY_COLUMN_USAGE t where t.table_schema='HIS466'
转载于:https://www.cnblogs.com/xuesheng/p/9413258.html