Is there a query I can write to search all the column names for a particular database in Netezza?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Bulk update SQL Server C#
You would access something similar to an information_schema. Column Name, %COW%', would use % as a wildcard...gathering any column that has 'COW' in the name
Within the same database you can use the following query:
or a less Netezza specific query
The important catalog views in netezza system are listed below
_V_USER
: the user view gives information about the users in the netezza system._V_TABLE
: the table view contains the list of tables created in the netezza performance system._V_RELATION_COLUMN
: the relation column system catalog view contains the columns available in a table._V_TABLE_INDEX
: this system catalog contains the information about the indexes created on table. netezza does not support creating indexes on a table as of now._V_OBJECTS
: lists the different objects like tables, view, functions etc. available in the netezza.Example: