数据仓库服务 GAUSSDB(DWS)-会话信息函数:current_schema[()]

时间:2024-01-26 16:15:17

current_schema[()]

描述:当前模式的名字。current_schema返回在搜索路径中第一个顺位有效的模式名。(如果搜索路径为空则返回NULL,没有有效的模式名也返回NULL)。如果创建表或者其他命名对象时没有声明目标模式,则将使用这些对象的模式。

返回值类型:name

示例:

1
2
3
4
5
SELECT current_schema();
 current_schema
----------------
 public
(1 row)
support.huaweicloud.com/sqlreference-820-dws/dws_06_0338.html
推荐文章