#openGauss #入门 #安装 #数据库 #开源
知识来源:docs-opengauss.osinfra.cn/zh/
示例
CREATE OR REPLACE PROCEDURE label_loop(i in integer, count out integer)
AS
BEGIN
count:=0;
label:
LOOP
IF count > i THEN
raise info 'count is %. ', count;
LEAVE;
ELSE
count:=count+1;
END IF;
END LOOP label;
END;
/
CALL proc_loop(10,5);
#openGauss #入门 #安装 #数据库 #开源