How do I list all the column names in Netezza?

Courtney picture Courtney · Jun 2, 2015 · Viewed 51.1k times · Source

Is there a query I can write to search all the column names for a particular database in Netezza?

Answer

Niederee picture Niederee · Jun 2, 2015

Within the same database you can use the following query:

select *
from _v_odbc_columns1
where column_name like '%columnname%'

or a less Netezza specific query

select *
from information_schema.columns
where column_name like '%columnname%'