#openGauss #入门 #安装 #数据库 #开源
知识来源:docs-opengauss.osinfra.cn/zh/
-
first
参数:无
返回值: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 'first:%' ,aa.first; openGauss$# end; openGauss$# / INFO: first:1 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 'first:%' ,aa.first; openGauss$# end; openGauss$# / INFO: first:aaa ANONYMOUS BLOCK EXECUTE
#openGauss #入门 #安装 #数据库 #开源