数据仓库服务 GaussDB(DWS)-会话信息函数:current_schema[()]
时间:2025-02-12 15:05:10
current_schema[()]
描述:当前模式的名字。current_schema返回在搜索路径中第一个顺位有效的模式名。(如果搜索路径为空则返回NULL,没有有效的模式名也返回NULL)。如果创建表或者其他命名对象时没有声明目标模式,则将使用这些对象的模式。
返回值类型:name
示例:
12345 |
SELECT current_schema(); current_schema---------------- public(1 row) |
support.huaweicloud.com/sqlreference-dws/dws_06_0338.html