mysql - Is it possible to do a subquery on a column SELECT:ed from information_schema? -


take @ following query (its not working becuase templates.a.column_name not exist).

select a.column_name, a.column_comment, (select templates.a.column_name status templates id=5)    information_schema.columns a.table_name = 'templates' , column_name 'rev%'; 

i want select data in column corresponds column_name (where id=5) selected information_schema. possible do? maybe trying reverse?

i looking result this:

column_name      column_comment           status rev_body_easy    body text easy read   2 rev_header_easy  header easy read      1 


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -