如何过滤 Teradata 帮助表
我想根据 teradata 的“帮助表”功能生成的数据集创建一个表,以便我可以添加有关该表的更多信息,并能够按条件过滤行。该表有400+列,这样管理起来非常方便。我希望能够执行类似于创建表作为选择的操作,但它不适用于帮助表语法。缺少将数据导出到 excel,然后手动创建表架构并将表重新导入,有谁知道如何将帮助表查询的输出转换为 teradata 中的表?
I'd like to create a table out of the dataset generated by teradata's "help table" function so i can add some more information about the table, and be able to filter the rows by conditions. the table has 400+ columns, so this would be very convenient for management. I'd like to be able to do something similar to creating a table as select, but it doesn't work with the help table syntax. short of exporting the data to excel, then manually creating the table schema and importing the table back in, does anyone know how to convert the output of a help table query into a table in teradata?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
HELP TABLE 命令的输出来自数据字典。
如果我理解正确,您想创建一个具有以下输出的新表。
您可以从表 DBC.TVFields 中获取所有这三列(甚至更多列)。
但首先我们需要找出DatabaseId 和TableId。
现在您可以列出您需要的所有列并相应地存储它们。
The output from the HELP TABLE command comes from Data Dictionary.
If I understand correctly, you want to create a new table with the following output.
You can get all of those three columns (or even more) from the table DBC.TVFields.
But first we need to find out DatabaseId and TableId.
Now you can list all the columns you need and store them correspondingly.