以下语句显示了示例数据库中具有“email”列的两个表的列表 -
mysql> select distinct table_name -> from information_schema.columns -> where column_name in('email') -> and table_schema = 'sample';+---------------+| table_name |+---------------+| employee || new_student |+---------------+2 rows in set (0.04 sec)
以上就是如何根据特定列名称从数据库中检查 mysql 表?的详细内容。
