一、场景

        1、业务需要,要将某个字段类型将int改为varchar;所以需要知道哪些表都有这个字段

        2、字段名: tenant_id,即租户ID

二、解决方案

SELECT * FROM information_schema.COLUMNS 
WHERE TABLE_SCHEMA = '数据库名'
and COLUMN_NAME='tenant_id'
and data_type = 'bigint'