Page 1 of 1

view name

Posted: Sun Apr 06, 2014 11:52 am
by nnani
Hello All,

I am trying to find the system table which shows me view name.

I know I can see the view name through meta command \dv

But I want to know the system table to access the view name.

I tried view table and view columns table, but could not find view name.

Thanks

Re: view name

Posted: Sun Apr 06, 2014 1:54 pm
by NorbertKrupa
I think you're looking for v_catalog.views and v_catalog.view_columns.

Re: view name

Posted: Mon Apr 07, 2014 6:06 am
by nnani
Hi norbert,

My question was regarding checking the view_name.

I cannot find view_name column in any of the mentioned tables.

Re: view name

Posted: Mon Apr 07, 2014 1:11 pm
by NorbertKrupa
There is no such column, unless you're talking about Flex views in 7.

Re: view name

Posted: Mon Apr 07, 2014 1:56 pm
by scutter
The column is unintuitively named table_name. (in the views table)

Re: view name

Posted: Tue Apr 08, 2014 6:27 am
by nnani
Thanks Sharon,

I was thinking the same about this column