开发者

how can a specify header is in which table?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜