Home > Database > Mysql Tutorial > MySQL 中查找含有目标字段的表的方法_MySQL

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 12:59:10
Original
1058 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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template