一、查询数据库中所有表名
方法一:
select table_name from information_schema.tables where table_schema='zhhb_vocs_service' and table_type='base table';
方法二:
select table_name,column_comment from information_schema.tables where table_schema=(select database());
二、查询指定数据库中指定表的所有字段名column_name
方法一:
select column_name from information_schema.columns where table_schema='zhhb_vocs_service' and table_name='t_audit_log';