Home > Database > Mysql Tutorial > body text

MySQL 中查找含有目标字段的表的方法_MySQL

WBOY
Release: 2016-06-01 12:59:10
Original
989 people have browsed it

代码如下:


SELECT TABLE_SCHEMA,TABLE_NAME
FROM information_schema.`COLUMNS`
WHERE COLUMN_NAME='字段名字'

参考:MySQL中,一个字段在多张表都存在,怎么用sql语句一次性查询这些表呢

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!