检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
DESCRIPTOR d VALUE 1 :d_returned_octet_length = RETURNED_OCTET_LENGTH; printf("d_returned_octet_length = %d\n", d_returned_octet_length);
proc_sys_ref(c1); END; / 3. FUNCTION RETURN传递ref cursor(不支持) CREATE OR REPLACE function proc_sys_ref() return SYS_REFCURSOR IS declare PRAGMA
sections ORDER BY section_ID; return C1; END; / ERROR: Autonomous function do not support ref cursor as return types or out, inout arguments
loop return next test_row; end loop; return; END; $$ ; ERROR: Autonomous transactions do not support RETURN SETOF. DETAIL:
示例1:创建范围分区表tpcds.web_returns_p1,含有8个分区,分区键为integer类型。 分区的范围分别为:wr_returned_date_sk< 2450815,2450815<= wr_returned_date_sk< 2451179,2451179<=wr_returned_date_sk<
INT ,b INT ,c TEXT) RETURN INT AS DECLARE PRAGMA AUTONOMOUS_TRANSACTION; BEGIN INSERT INTO t4 VALUES(a, b, c); RETURN 1; END; / CREATE FUNCTION
INT ,b INT ,c TEXT) RETURN INT AS DECLARE PRAGMA AUTONOMOUS_TRANSACTION; BEGIN INSERT INTO t4 VALUES(a, b, c); RETURN 1; END; / CREATE FUNCTION
cds.web_returns的select权限授予用户joe。 1 2 gaussdb=# GRANT USAGE ON SCHEMA tpcds TO joe; gaussdb=# GRANT SELECT ON TABLE tpcds.web_returns to joe;
cds.web_returns的select权限授予用户joe。 1 2 gaussdb=# GRANT USAGE ON SCHEMA tpcds TO joe; gaussdb=# GRANT SELECT ON TABLE tpcds.web_returns to joe;
cds.web_returns的select权限授予用户joe。 1 2 gaussdb=# GRANT USAGE ON SCHEMA tpcds TO joe; gaussdb=# GRANT SELECT ON TABLE tpcds.web_returns to joe;
PQfinish(conn); return 0; } 示例运行结果如下: Connect database success! NOTICE: table "t01" does not exist, skipping return 1 rows row 0: 23 return 1 rows row
PQfinish(conn); return 0; } 示例运行结果如下: Connect database success! NOTICE: table "t01" does not exist, skipping return 1 rows row 0: 23 return 1 rows row
VARCHAR2) RETURNS VOID; DBE_XML.XML_DOM_WRITE_TO_FILE_DOC( id IN RAW(13), file_dir IN VARCHAR2, charset IN VARCHAR2) RETURNS VOID PACKAGE
VARCHAR2) RETURNS VOID DBE_XML.XML_DOM_WRITE_TO_FILE_DOC( id IN RAW(13), file_dir IN VARCHAR2, charset IN VARCHAR2) RETURNS VOID PACKAGE
s.web_returns的select权限赋给用户joe。 1 2 openGauss=# GRANT USAGE ON SCHEMA tpcds TO joe; openGauss=# GRANT SELECT ON TABLE tpcds.web_returns to joe;
DROP FOREIGN DATA WRAPPER 功能描述 删除指定的外部数据封装。 注意事项 只有在support_extended_features=on时才能够成功执行drop语句。 语法格式 DROP FOREIGN DATA WRAPPER [ IF EXISTS ] name
DROP FOREIGN DATA WRAPPER 功能描述 删除指定的外部数据封装。 注意事项 只有在support_extended_features=on时才能够成功执行DROP语句。 语法格式 DROP FOREIGN DATA WRAPPER [ IF EXISTS ] name
LOOP RETURN NEXT test_row; END LOOP; RETURN; END; $$; ERROR: Autonomous transactions do not support RETURN SETOF. DETAIL:
示例1:创建范围分区表tpcds.web_returns_p1,含有8个分区,分区键为integer类型。 分区的范围分别为:wr_returned_date_sk< 2450815,2450815<= wr_returned_date_sk< 2451179,2451179<=wr_returned_date_sk<
store_returns WHERE sr_item_sk > '4795'; --使用tpcds.store_returns拷贝一个新表tpcds.store_returns_t2。 openGauss=# CREATE TABLE tpcds.store_returns_t2 AS