#openGauss #入门 #安装 #数据库 #开源
知识来源:docs-opengauss.osinfra.cn/zh/
-
last
参数:无
返回值:int类型或varchar类型
功能描述:返回集合中最后一个有效元素的下标。
示例:
openGauss=# declare openGauss-# type nest is table of int; openGauss-# aa nest:=nest(11,22,33,44,55); openGauss-# begin openGauss$# raise info 'last:%' ,aa.last; openGauss$# end; openGauss$# / INFO: last:5 ANONYMOUS BLOCK EXECUTE openGauss=# declare openGauss-# type nest is table of int index by varchar; openGauss-# aa nest; openGauss-# begin openGauss$# aa('aaa') := 111; openGauss$# aa('bbb') := 222; openGauss$# aa('ccc') := 333; openGauss$# raise info 'last:%' ,aa.last; openGauss$# end; openGauss$# / INFO: last:ccc ANONYMOUS BLOCK EXECUTE
#openGauss #入门 #安装 #数据库 #开源