OceanBase logo

OceanBase

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

Product Overview
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

OceanBase

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

Product Overview
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.3.5

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive DemosTraining & CertificationTicket
    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.3.5
    iconOceanBase Database
    SQL - V 4.3.5
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    SQL
    KV
    • V 4.6.0
    • 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

    mysql.proc

    Last Updated:2026-04-15 06:09:08  Updated
    Share
    What is on this page
    Purpose
    Columns
    Sample query

    folded

    Share

    Note

    This view is introduced since OceanBase Database V2.2.77.

    Purpose

    This view displays information about stored procedures.

    Columns

    Column
    Type
    Nullable?
    Description
    db varchar(128) NO The name of the database.
    name varchar(128) NO The name of the stored procedure.
    type varchar(10) NO The type of the stored procedure. Valid values:
  • PROCEDURE: a stored procedure.
  • FUNCTION: a stored function.
  • specific_name varchar(128) NO The value is the same as that of the name column.
    language varchar(4) NO At present, this column is not used and is always SQL.
    sql_data_access varchar(32) NO At present, this column is not used is fixed to CONTAINS_SQL.
    is_deterministic varchar(4) NO Indicates whether the stored procedure is defined with the DETERMINISTIC characteristic. This column is not used.
  • YES
  • NO
  • security_type varchar(10) NO The SQL access attribute. This column is not used.
  • DEFINER
  • INVOKER
  • param_list longblob NO The parameter list of the stored procedure.
    returns longblob NO The return value of the stored procedure.
    body longblob NO The text information of the stored procedure definition.
    definer varchar(77) NO The user who created the stored procedure.
    created timestamp(6) NO The date and time when the stored procedure was created.
    modified timestamp(6) NO The date and time when the stored procedure was last modified.
    sql_mode text NO The SQL mode in effect when the stored procedure was created or modified and under which the stored procedure executes.
    comment varchar(4096) NO The text of the comment.
    character_set_client varchar(128) NO The session value of the system variable CHARACTER_SET_CLIENT when the stored procedure was created or modified.
    collation_connection varchar(128) NO The session value of the system variable COLLATION_CONNECTION when the stored procedure was created or modified.
    collation_database varchar(128) NO The session value of the system variable collation_database when the stored procedure was created or modified.
    body_utf8 longblob NO The definition of the stored procedure, which is the same as value of the body column.

    Sample query

    Query detailed information about the stored procedure my_proc.

    obclient [infotest]> SELECT * FROM mysql.proc WHERE NAME='my_proc'\G
    

    The query result is as follows:

    *************************** 1. row ***************************
                      DB: infotest
                    NAME: my_proc
                    TYPE: PROCEDURE
           SPECIFIC_NAME: my_proc
                LANGUAGE: SQL
         SQL_DATA_ACCESS: READS_SQL_DATA
        IS_DETERMINISTIC: NO
           SECURITY_TYPE: DEFINER
              PARAM_LIST: IN emp_no INT,OUT emp_count INT
                 RETURNS:
                    BODY: BEGIN
         SELECT COUNT(*) INTO emp_count FROM emp WHERE empno=emp_no;
       END
                 DEFINER: 'root'@'%'
                 CREATED: 2025-01-24 14:00:18.496744
                MODIFIED: 2025-01-24 14:00:18.496744
                SQL_MODE: STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_AUTO_CREATE_USER
                 COMMENT:
    CHARACTER_SET_CLIENT: utf8mb4
    COLLATION_CONNECTION: utf8mb4_general_ci
            DB_COLLATION: utf8mb4_general_ci
               BODY_UTF8: BEGIN
         SELECT COUNT(*) INTO emp_count FROM emp WHERE empno=emp_no;
       END
    1 row in set
    

    Previous topic

    mysql.help_topic
    Last

    Next topic

    mysql.procs_priv
    Next
    What is on this page
    Purpose
    Columns
    Sample query