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

Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
prb1610499325399.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1092
lifecycle
previous
Product Category
Teradata Vantage™

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