current_schema()

一个返回当前模式名称的函数

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

current_schema()PostgreSQL 7.3 中被添加。

用法

current_schema() → name

current_schema 是作为 SQL 标准的等效项提供的。

变更历史

示例

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_schema()”的任何评论、建议或更正