16.20 - Example: Select the CommentString Column from ColumnsV - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ Data Dictionary

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-03
dita:mapPath
zzu1512081120577.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

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