From 8a0c1a5423de94dd1c809b062a0d44fe2073c007 Mon Sep 17 00:00:00 2001 From: douxin Date: Fri, 24 Jan 2025 15:13:57 +0800 Subject: [PATCH] [bugfix] repair doc --- ...\346\270\270\346\240\207\345\210\233\345\273\272type.md" | 6 +++++- ...\346\270\270\346\240\207\345\210\233\345\273\272type.md" | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git "a/content/docs-lite/zh/docs/SQLReference/\344\275\277\347\224\250\346\270\270\346\240\207\345\210\233\345\273\272type.md" "b/content/docs-lite/zh/docs/SQLReference/\344\275\277\347\224\250\346\270\270\346\240\207\345\210\233\345\273\272type.md" index 2fe584f76..a5a515ab4 100644 --- "a/content/docs-lite/zh/docs/SQLReference/\344\275\277\347\224\250\346\270\270\346\240\207\345\210\233\345\273\272type.md" +++ "b/content/docs-lite/zh/docs/SQLReference/\344\275\277\347\224\250\346\270\270\346\240\207\345\210\233\345\273\272type.md" @@ -84,6 +84,9 @@ insert into t1 values(1,'a1'); 2、定义一个弱类型游标。 ```sql +create extension gms_output; +select gms_output.enable(2000); + declare type RECORD_ACCOUNT_LIST1 IS RECORD (id int, name1 varchar2(30)); type CUR_ACCOUNT_LIST1 is ref cursor return RECORD_ACCOUNT_LIST1; @@ -94,7 +97,7 @@ open cur_accountlist1 for select * from t1; loop fetch cur_accountlist1 into rc_list; exit when cur_accountlist1%notfound; -dbms_output.put_line(rc_list.id||' '||rc_list.name1); +gms_output.put_line(rc_list.id||' '||rc_list.name1); end loop; end; / @@ -103,5 +106,6 @@ end; 返回结果如下,则表示创建成功: ```sql +1 a1 ANONYMOUS BLOCK EXECUTE ``` \ No newline at end of file diff --git "a/content/zh/docs/SQLReference/\344\275\277\347\224\250\346\270\270\346\240\207\345\210\233\345\273\272type.md" "b/content/zh/docs/SQLReference/\344\275\277\347\224\250\346\270\270\346\240\207\345\210\233\345\273\272type.md" index 2fe584f76..a5a515ab4 100644 --- "a/content/zh/docs/SQLReference/\344\275\277\347\224\250\346\270\270\346\240\207\345\210\233\345\273\272type.md" +++ "b/content/zh/docs/SQLReference/\344\275\277\347\224\250\346\270\270\346\240\207\345\210\233\345\273\272type.md" @@ -84,6 +84,9 @@ insert into t1 values(1,'a1'); 2、定义一个弱类型游标。 ```sql +create extension gms_output; +select gms_output.enable(2000); + declare type RECORD_ACCOUNT_LIST1 IS RECORD (id int, name1 varchar2(30)); type CUR_ACCOUNT_LIST1 is ref cursor return RECORD_ACCOUNT_LIST1; @@ -94,7 +97,7 @@ open cur_accountlist1 for select * from t1; loop fetch cur_accountlist1 into rc_list; exit when cur_accountlist1%notfound; -dbms_output.put_line(rc_list.id||' '||rc_list.name1); +gms_output.put_line(rc_list.id||' '||rc_list.name1); end loop; end; / @@ -103,5 +106,6 @@ end; 返回结果如下,则表示创建成功: ```sql +1 a1 ANONYMOUS BLOCK EXECUTE ``` \ No newline at end of file -- Gitee