Show column name and data type in Teradata? Show column name and data type in Teradata? oracle oracle

Show column name and data type in Teradata?


You can use "SHOW VIEW VIEW_NAME" or "HELP COLUMN VIEW_NAME.*" to get all column names and datatype in the view.

Example

HELP COLUMN dbc.Allspace.*

OUTPUT

Column Name     Type    Nullable    Format                          Max Length  Vproc           I2      N           -(5)9                           2     DatabaseName    CF      Y           X(30)                           30  AccountName     CF      Y           X(30)                           30  TableName       CF      Y           X(30)                           30  MaxPerm         F       N           ---,---,---,---,--9             8   MaxSpool        F       N           ---,---,---,---,--9             8   MaxTemp         F       N           ---,---,---,---,--9             8   CurrentPerm     F       N           ---,---,---,---,--9             8   CurrentSpool    F       N           ---,---,---,---,--9             8   CurrentTemp     F       N           ---,---,---,---,--9             8   PeakPerm        F       N           ---,---,---,---,--9             8   PeakSpool       F       N           ---,---,---,---,--9             8   PeakTemp        F       N           ---,---,---,---,--9             8   MaxProfileSpool F       Y           ---,---,---,---,--9             8   MaxProfileTemp  F       Y           ---,---,---,---,--9             8   


you can use : help table tablename (in case of tables) and help view viewname in case of views