Home > Database > Mysql Tutorial > mysql中查询某个相同字段的表集合_MySQL

mysql中查询某个相同字段的表集合_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:38:43
Original
1026 people have browsed it

bitsCN.com


mysql中查询某个相同字段的表集合

 

1  在查询窗口中输入: 

Java代码  

SELECT   TABLE_NAME  FROM   INFORMATION_SCHEMA.COLUMNS  

WHERE   COLUMN_NAME   =   'int1' group by TABLE_NAME;  

就可以查找到含有字段名为int1的所有表名; 

 

2  再在查询窗口中输入: 

Java代码  

desc 查询到的表名;  

 

就可查找到该表中的所有字段名.

bitsCN.com
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