开发者

how can a specify header is in which table?

开发者 https://www.devze.com 2023-02-17 13:56 出处:网络
suppose i have three table with names : broker,man andcoach. i want to know that for example \'name\' field

suppose i have three table with names : broker,man and coach.

i want to know that for example 'name' field

is in which table.

how can 开发者_运维问答realize it?


Strange question indeed.

select column_name,table_name 
from information_schema.columns
where table_schema = 'your_db' and table_name in ('broker','man','coach') and column_name = 'name'
0

精彩评论

暂无评论...
验证码 换一张
取 消