欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

MySQL 找出使用了某列名的所有表

程序员文章站 2022-06-02 23:46:07
...

无详细内容 无 SELECT table_name,column_name FROM information_schema.columnsWHERE column_name LIKE '% tax %' Table_Name Column_namet_Customer tax_idt_Employee tax_numbert_Balance_sheet tax_percentage

SELECT table_name,column_name FROM information_schema.columns
WHERE column_name LIKE '% tax %'
Table_Name 	Column_name
t_Customer 	tax_id
t_Employee 	tax_number
t_Balance_sheet tax_percentage