17.10 - Example: Select the CommentString Column from ColumnsV - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Programming Reference
Publication ID
B035-1092-171K
Language
English (United States)

This example shows a statement that selects any available commentary about columns in the Employee table:

SELECT ColumnName,CommentString FROM DBC.ColumnsV
       WHERE DatabaseName=’Personnel’ AND
       TableName=’Employee’
       ORDER BY Columnid;

Result:

ColumnName      CommentString
-----------     ---------------------------------------    
EmpNo           Employee serial number.
Name            Employee name, last then first initial.
DeptNo
JobTitle
Salary
YrsExp