هذه الصفحة غير متوفرة حاليًا بلغتك المحلية. نحن نعمل جاهدين على إضافة المزيد من اللغات. شاكرين تفهمك ودعمك المستمر لنا.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

Collections and Records

Updated on 2024-12-06 GMT+08:00
Table 1 Types

No.

Oracle Database

GaussDB

1

Associative array (or index-by table)

Supported.

2

VARRAY (variable-size array)

Supported.

3

Nested table

Supported.

4

record

Supported.

Table 2 Syntax

No.

Oracle Database

GaussDB

Difference

1

Associative array (or index-by table) syntax:

TABLE OF datatype [ NOT NULL ]

INDEX BY { PLS_INTEGER | BINARY_INTEGER | VARCHAR2 ( v_size ) | data_type }

Supported, with differences.

  • GaussDB does not support the PLS_INTEGER type. In GaussDB, the value of data_type can be a base data type or a record type, collection type, or array type defined in a stored procedure. The ref cursor type is not supported.
  • In GaussDB, NOT NULL does not take effect in the syntax. That is, the system does not check whether an element is NULL.
  • For details, see "Stored Procedure > Arrays, Collections, and Records > Collections" in Developer Guide.

2

VARRAY (variable-size array) syntax:

{ VARRAY | [ VARYING ] ARRAY } ( size_limit )

OF datatype [ NOT NULL ]

Supported, with differences.

  • GaussDB does not support the NOT NULL syntax.
  • In GaussDB, datatype cannot be set to varray (varray cannot be nested).
  • To make the size_limit function take effect, enable the varray_compat parameter in the behavior_compat_options GUC parameter.
  • For details, see "Stored Procedure > Arrays, Collections, and Records > Arrays" in Developer Guide.

3

Nested table syntax:

TABLE OF datatype [ NOT NULL ]

Supported, with differences.

  • In GaussDB, NOT NULL does not take effect in the syntax.
  • For details, see "Stored Procedure > Arrays, Collections, and Records > Collections" in Developer Guide.

4

record syntax:

TYPE record_type IS RECORD ( field_definition [, field_definition]... ) ;

Supported.

  • Record columns can be defined as NOT NULL or a default value can be specified. If the record type is nested in other types, the default value and NOT NULL of the record type do not take effect. If a record variable is created using the package.record_type access type, the default value and NOT NULL of the record variable do not take effect.
  • For details, see "Stored Procedure > Arrays, Collections, and Records > Records" in Developer Guide.
Table 3 Constructor

No.

Oracle Database

GaussDB

1

collection_type ( [ value [, value ]... ] )

Supported.

Table 4 Variable assignment

No.

Oracle Database

GaussDB

Difference

1

Associative array (or index-by table)

Supported.

-

2

VARRAY (variable-size array)

Supported, with differences.

  • Values of different VARRAY data in GaussDB can be assigned to each other, depending on whether elements in the data can be implicitly converted to each other.
  • For details, see "Stored Procedure > Arrays, Collections, and Records > Arrays" in Developer Guide.

3

Nested table

Supported.

-

4

record

Supported, with differences.

  • Values of different record data in GaussDB can be assigned to each other, depending on whether columns can be implicitly converted.
  • For details, see "Stored Procedure > Arrays, Collections, and Records > Records" in Developer Guide.
Table 5 Collection operators

No.

Oracle Database

GaussDB

Difference

1

=

Supported, with differences.

  • Oracle Database: The sequence of collection members is ignored during comparison.
  • GaussDB: The comparison is performed strictly based on the sequence of collection members.

2

<>

Supported, with differences.

  • Oracle Database: The sequence of collection members is ignored during comparison.
  • GaussDB: The comparison is performed strictly based on the sequence of collection members.

3

IS[NOT] NULL

Supported.

-

4

^=

Supported, with differences.

  • Oracle Database: The sequence of collection members is ignored during comparison.
  • GaussDB: The comparison is performed strictly based on the sequence of collection members.

5

~=

Not supported.

-

6

IS[NOT] A SET

Not supported.

-

7

IS [NOT] EMPTY

Not supported.

-

8

expr [ NOT ] MEMBER [ OF ] nested_table

Not supported.

-

9

nested_table1

[ NOT ] SUBMULTISET [ OF ]

nested_table2

Not supported.

-

10

[NOT] IN

Supported.

  • Oracle Database: The sequence of collection members is ignored during comparison.
  • GaussDB: The comparison is performed strictly based on the sequence of collection members.
Table 6 MULTISET functions

No.

Oracle Database

GaussDB

1

MULTISET UNION [ALL | DISTINCT]

Supported.

2

MULTISET EXCEPT [ALL | DISTINCT]

Supported.

3

MULTISET INTERSECT [ALL | DISTINCT]

Supported.

Table 7 Collection type functions

No.

Oracle Database

GaussDB

Difference

1

exists(idx)

Supported.

-

2

extend[(count[, idx])]

Supported, with differences.

GaussDB supports only nested tables.

3

delete[(idx1[, idx2])]

Supported.

-

4

trim[(n)]

Supported, with differences.

GaussDB supports only nested tables.

5

count

Supported.

-

6

first

Supported.

-

7

last

Supported.

-

8

prior(idx)

Supported.

-

9

next(idx)

Supported.

-

10

limit

Supported, with differences.

GaussDB supports only nested tables.

Table 8 Record variable operations

No.

Oracle Database

GaussDB

1

Constructors

Supported.

2

%ROWTYPE to declare a variable

Supported.

3

Defining constants

Not supported.

Table 9 Collection-related functions

No.

Oracle Database

GaussDB

1

unnest_table(anynesttable)

Supported.

2

unnest_table(anyindexbytable)

Supported.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback