小编Lee*_*Lee的帖子

如何在 Amazon RDS 上查询 INFORMATION_SCHEMA.COLUMNS?

我收到了另一个团队发来的列名列表。为了确保所有字段列名称在特定模式内有效,我将它们放入临时表中。我现在想看看它们是否存在。当我尝试加入 时information_schema.columns,我收到以下错误:

ERROR: 0A000: Specified types or functions (one per INFO message) not supported on Redshift tables.
Column "c.column_name" has unsupported type     "information_schema.sql_identifier".
Column "a.*" has unsupported type "pg_attribute".
Column "t.*" has unsupported type "pg_type".
Function "format_type(oid,integer)" not supported.
Function "format_type(oid,integer)" not supported.
Function "has_table_privilege(oid,text)" not supported.
Function "has_table_privilege(oid,text)" not supported.
Function "has_table_privilege(oid,text)" not supported.
Function "has_table_privilege(oid,text)" not supported.
Run Code Online (Sandbox Code Playgroud)

我尝试过塑造column_name不同的类型,但没有成功。有人可以告诉我出了什么问题以及我如何实现这个目标吗?

information-schema errors catalogs system-tables redshift

2
推荐指数
1
解决办法
9153
查看次数