OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V4.1.0

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & Certification
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V4.1.0
    iconOceanBase Database
    SQL - V 4.1.0
    SQL
    KV
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    SET* member procedures

    Last Updated:2023-07-28 02:55:43  Updated
    share
    What is on this page
    Syntax
    Parameters
    Exceptions
    Usage notes

    folded

    share

    SET* member procedures are used to set the current data value.

    Member procedures in the SET* list must be called based on the type of the current data value. The type of the data value should be the type of the attribute at the current position during the piece-wise construction process.

    Applicability

    This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only the MySQL mode.

    Syntax

      MEMBER PROCEDURE SetNumber(
               self IN OUT NOCOPY AnyData,
               num IN NUMBER,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetDate(
               self IN OUT NOCOPY AnyData,
               dat IN DATE,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetChar(
               self IN OUT NOCOPY AnyData,
               c IN CHAR,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetVarchar(
               self IN OUT NOCOPY AnyData,
               c IN VARCHAR,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetVarchar2(
               self IN OUT NOCOPY AnyData,
               c IN VARCHAR2,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetRaw(
               self IN OUT NOCOPY AnyData,
               r IN RAW,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetBlob(
               self IN OUT NOCOPY AnyData,
               b IN BLOB,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetClob(
               self IN OUT NOCOPY AnyData,
               c IN CLOB,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetObject(
               self IN OUT NOCOPY AnyData,
               obj IN "<ADT_1>",
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetCollection(
               self IN OUT NOCOPY AnyData,
               col IN "<COLLECTION_1>",
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetTimestamp(
               self IN OUT NOCOPY AnyData,
               ts IN TIMESTAMP_UNCONSTRAINED,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetTimestampTZ(
               self IN OUT NOCOPY AnyData,
               ts IN TIMESTAMP_TZ_UNCONSTRAINED,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetTimestampLTZ(
               self IN OUT NOCOPY AnyData,
               ts IN TIMESTAMP_LTZ_UNCONSTRAINED,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetIntervalYM(
               self IN OUT NOCOPY AnyData,
               inv IN YMINTERVAL_UNCONSTRAINED,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetIntervalDS(
               self IN OUT NOCOPY AnyData,
               inv IN DSINTERVAL_UNCONSTRAINED,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetNchar(
               self IN OUT NOCOPY AnyData,
               nc IN NCHAR,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetNVarchar2(
               self IN OUT NOCOPY AnyData,
               nc IN NVarchar2,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetBFloat(
               self IN OUT NOCOPY AnyData,
               fl IN BINARY_FLOAT,
               last_elem IN boolean DEFAULT FALSE);
    
      MEMBER PROCEDURE SetBDouble(
               self IN OUT NOCOPY AnyData,
               dbl IN BINARY_DOUBLE,
               last_elem IN boolean DEFAULT FALSE);
    

    Parameters

    Parameter Description
    self An ANYDATA.
    num The number and associated information to be set.
    last_elem Relevant only if ANYDATA represents a collection. This parameter indicates whether the current value is the last element of the collection.

    Exceptions

    • DBMS_TYPES.INVALID_PARAMETERS: Invalid parameters. For example, it is inappropriate to add a number at a specific point in time during the creation process.

    • DBMS_TYPES.INCORRECT_USAGE: Incorrect usage.

    • DBMS_TYPES.TYPE_MISMATCH: The expected type is different from the passed in type.

    Usage notes

    A BEGINCREATE call means that the construction has started in piece-wise mode. Subsequent calls to SET* will set the successive attribute values. If ANYDATA is an independent collection, then the SET * calls will set the successive collection elements.

    Previous topic

    PIECEWISE member procedure
    Last

    Next topic

    Overview
    Next
    What is on this page
    Syntax
    Parameters
    Exceptions
    Usage notes