Skip to main content

How to check the List of columns in a table for particular schema ???

  • July 29, 2013
  • 5 replies
  • 23 views

Syed_Mohammad_M
Forum|alt.badge.img+1
How to check the List of columns in a table for particular schema ??? The below Oracle query is not working with HP Vertica: select COLUMN_NAME from ALL_TAB_COLUMNS where table_name= and owner= Vertica is not giving support for ALL_TAB_COLUMNS

5 replies

Forum|alt.badge.img+2
  • Participating Frequently
  • July 30, 2013
I believe I've addressed this in response to your other post at https://community.vertica.com/vertica/topics/how_to_check_the_list_of_tables_in_particular_schema_in_hp_vertica Let us know if you have further questions. Adam

Navin_C
Forum|alt.badge.img+2
  • Participating Frequently
  • July 30, 2013
Hello Syed, Select column_name from columns where table_name='tableA' and owner_name='syed'; Hope this helps.

Yanxia_Liu
  • New Participant
  • December 8, 2014
Make that:
select column_name from columns where table_name = 'tableA' and table_schema='syed';

Krishna_Reddy
  • New Participant
  • February 16, 2015
If I want the entire table structure of a particular table ?

Lokesh_1
Forum|alt.badge.img
  • Participating Frequently
  • February 17, 2015
Hi Krishna,

You can use below for vsql.
\d tables_schema.table_name

you can get ddl of a table using 

select export_objects('','table_schema.table_name');