#openGauss #入门 #安装 #数据库 #开源
知识来源:docs-opengauss.osinfra.cn/zh/
-
trim[(n)]
参数:n为int4类型
返回值:无返回值
功能描述:仅支持nesttable类型,无参数时,删除末尾一个元素空间,输入参数合法时,删除末尾指定数量元素空间。
约束:嵌套场景不支持trim()。
示例:
openGauss=# declare openGauss-# type nest is table of int; openGauss-# aa nest:=nest(11,22,33,44,55); openGauss-# begin openGauss$# raise info 'aa:%' ,aa; openGauss$# aa.trim; openGauss$# raise info 'aa:%' ,aa; openGauss$# aa.trim(2); openGauss$# raise info 'aa:%' ,aa; openGauss$# end; openGauss$# / INFO: aa:{11,22,33,44,55} INFO: aa:{11,22,33,44} INFO: aa:{11,22} ANONYMOUS BLOCK EXECUTE
#openGauss #入门 #安装 #数据库 #开源