标签:when group 别名 attach sel select inf ali tac
select GROUP_CONCAT(t.alise,‘.‘,t.column_name) from (
select column_name ,
(case table_name
when ‘news‘ then ‘n‘
when ‘news_attachment‘ then ‘na‘ else ‘‘ end) alise
from
information_schema.`COLUMNS`
where table_schema = ‘ecs_news‘
and table_name in ( ‘news‘,‘news_attachment‘ )
) t
标签:when group 别名 attach sel select inf ali tac
原文地址:https://www.cnblogs.com/138026310/p/11810853.html