查询以仅获取具有至少一个特定类型字段的表

Query to get only tables that have at least one field of a certain type

是否可以获取 table 的 table 个名称,这些名称在 Teradata 中至少具有一个特定类型的字段?

您可以使用 DBC.COLUMNS。例如,如果您想要所有具有日期类型列的表:

select c.*
from dbc.columnc c
where c.columntype = 'DA';

posting 提供了更多信息。

正如 Gordon 已经写的那样,您需要查询数据字典,只需使用 V-views(旧的自 TD12 以来已弃用):

select c.*
from dbc.columnsV c
where c.columntype = 'DA';

检查Data Dictionary manual每种数据类型的正确缩写