Home >Database >Mysql Tutorial >mysql查看字段在哪个表中_MySQL

mysql查看字段在哪个表中_MySQL

WBOY
WBOYOriginal
2016-06-01 13:17:451104browse

在项目有时候字段太多,想快速查看一下该字段在哪个数据库的哪张表中。可以用如下语句:

SELECT TABLE_SCHEMA AS '数据库',TABLE_NAME AS `表名` from information_schema.COLUMNS WHERE COLUMN_NAME='字段'


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn