从 Teradata DB 获取包含表信息的所有列
这个有效,仅生成列名称:
SELECT ColumnName
FROM dbc.columnsV
WHERE DatabaseName = 'DB_NAME';
但是我还想查看表名称和列类型。
This one works, producing the column names only:
SELECT ColumnName
FROM dbc.columnsV
WHERE DatabaseName = 'DB_NAME';
but I want to see the table name and the column type as well.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的...这是一个简单的问题,我自己设法回答了这个问题:
生成所需的表,其中包含可能需要的所有内容,包括这些列:
因此,所需的查询是:
Ok... This one was an easy one, I managed to answer it myself:
produces the needed table with all the stuff that one may need, including these columns:
So, the needed query is: