雪花中Teradata的dbc.tables和dbc. -columns有什么等效的吗?
在Teradata中,我们现在有一个查询,可以为特定数据库提供表名和列名的列表,例如:
select * from dbc.tables where databasename in ('A','B','C')
此雪花是否有等效的?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Information_schema在每个数据库下,如果要在多个数据库中获取表,则可以使用
coundy_usage.tables.table
counch_usage.colums
/sql-reference/account-usage/tables.html
INFORMATION_SCHEMA is under each database, if you want to get tables across multiple databases, then you can use
ACCOUNT_USAGE.TABLES
ACCOUNT_USAGE.COLUMS
https://docs.snowflake.com/en/sql-reference/account-usage/tables.html
https://docs.snowflake.com/en/sql-reference/account-usage/columns.html
是的,您可以使用信息_schema.tables和列视图,其中将显示表和列信息。
请查看以下文档以获取更多信息。
https://docs.snowflake.com/en/sql-reference/account-usage/account-usage.html#account-usage-usage-usage-views
https://docs.snowflake.com/en/sql-reference/account-usage.html#differences-between-between-account-usage-usage-and-information-schema
Yes, You can use INFORMATION_SCHEMA.TABLES and COLUMNS views which will display table and column information.
Please review the below documentation for more information.
https://docs.snowflake.com/en/sql-reference/info-schema.html#information-schema-views-and-table-functions
https://docs.snowflake.com/en/sql-reference/account-usage.html#account-usage-views
https://docs.snowflake.com/en/sql-reference/account-usage.html#differences-between-account-usage-and-information-schema
最接近:
IS:
Account_usage包含掉落的对象的最接近的对象,因此仅添加了一个过滤器条件
已删除的一个null
。还值得注意的是,视图具有延迟(对于最多90分钟的列和表)。
The closest equivalent of:
is:
Account_usage contains dropped objects so to get only current one filter condition
DELETED IS NULL
was added.It is also worth noting that ACCOUNT_USAGE views have latency (for columns and tables up to 90 minutes).