Home  >  Article  >  Database  >  MySql获取某个字段存在于哪个表的sql语句_MySQL

MySql获取某个字段存在于哪个表的sql语句_MySQL

WBOY
WBOYOriginal
2016-06-01 13:25:23823browse

bitsCN.com
SELECT TABLE_SCHEMA,TABLE_NAME FROM information_schema.`COLUMNS` WHERE COLUMN_NAME = 'col1'

col1为子段名。bitsCN.com

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