Let’s say I have a view in which I am selecting the names of tables from a particular schema. How can I use SELECT so that it display the columns and its values from these tables?
with tables_names as (
select table_name
from information_schema. "columns"
where table_schema = 'xx'
)
select * from tables_names
2
Answers
If you want to display the column names in your query just add
Well, if your purpose is to list db-table column names:
Or more "extended" option:
"can I use SELECT so that it display the columns and its values from these tables". If you need to see table data based on table/column name(s):
Finally, if you want to find a specific value from all colums and all tables, you have to iterate over them using cursor (probably non-cursor option exists, do not see it yet…)