current_schema

返回当前模式名称的函数

current_schema 是一个返回当前模式名称的系统函数。

current_schemaPostgreSQL 8.4 中添加。

用法

current_schema → name

current_schema 是作为 SQL 标准等效于 current_schema()

变更历史

示例

current_schema 的执行

postgres=# SELECT current_schema;
 current_schema
----------------
 public
(1 row)

postgres=# SET search_path TO pg_catalog;
SET

postgres=# SELECT current_schema;
 current_schema
----------------
 pg_catalog
(1 row)

分类

模式(命名空间), 系统函数

另请参阅

current_schema(), current_schemas(), current_catalog

反馈

请在此 提交任何关于“current_schema”的评论、建议或更正