#openGauss #入门 #安装 #数据库 #开源
知识来源:docs-opengauss.osinfra.cn/zh/
-
count
参数:无
返回值:int类型
功能描述:返回集合中存在有效元素的个数。
示例:
openGauss=# declare openGauss-# type nest is table of int; openGauss-# aa nest:=nest(11,22,33,44,55); openGauss-# begin openGauss$# raise info 'count:%' ,aa.count; openGauss$# end; openGauss$# / INFO: count: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 'count:%' ,aa.count; openGauss$# end; openGauss$# / INFO: count:3 ANONYMOUS BLOCK EXECUTE
#openGauss #入门 #安装 #数据库 #开源