#openGauss #入门 #安装 #数据库 #开源
知识来源:docs-opengauss.osinfra.cn/zh/
示例
openGauss=# CREATE OR REPLACE PROCEDURE GOTO_test()
AS
DECLARE
v1 int;
BEGIN
v1 := 0;
LOOP
EXIT WHEN v1 > 100;
v1 := v1 + 2;
if v1 > 25 THEN
GOTO pos1;
END IF;
END LOOP;
<<pos1>>
v1 := v1 + 10;
raise info 'v1 is %. ', v1;
END;
/
call GOTO_test();
#openGauss #入门 #安装 #数据库 #开源