I want this as a query. I tried using a query but that is not giving me proper results. I want to get the datatype of the corresponding columns in Teradata with column name.
I tried with dbc.columntype
and column length but I'm getting null/?
as a value. Any help would be appreciated. Thanks
Here is the query I used:
Select c.databasename, c.columnname,c.columnlength,c.columntype
from dbc.columnsV c
Join dbc.tablesV t
on c databasename=t.databasename