GBase 8c中怎么查询数据库配置参数,例如datestyle。使用什么函数或者语法呢?
在GBase 8c中,可以使用current_setting函数,来查询获取参数的当前值,和SQL语句SHOW是等效的。
查询datesytle,则语法如下
gbase=# SELECT current_setting('datestyle');
current_setting
-----------------
ISO, MDY
(1 row)