test_table // 表名
test_database // 数据库的字段
"%测试%" // 字段注释
SELECT
COLUMN_NAME,
column_comment
FROM
INFORMATION_SCHEMA.COLUMNS
WHERE
table_name = 'test_table'
AND table_schema = 'test_database'
AND column_comment LIKE "%快递%";
test_table // 表名
test_database // 数据库的字段
"%测试%" // 字段注释
SELECT
COLUMN_NAME,
column_comment
FROM
INFORMATION_SCHEMA.COLUMNS
WHERE
table_name = 'test_table'
AND table_schema = 'test_database'
AND column_comment LIKE "%快递%";