Home > Database > Mysql Tutorial > body text

mysql查看字段在哪个表中_MySQL

WBOY
Release: 2016-06-01 13:17:45
Original
1059 people have browsed it

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

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


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!