CloudSigma CloudSigma Docs
Get Started Guides Developer Reference Tutorials
Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
CloudSigma Docs
CloudSigma Docs

Reference

  • Reference
    • OmniFabric SQL
      • Structure and Syntax
        • Keywords
        • Comments
      • Data Types
        • Data Type
        • Data Type Conversion
        • Date and Time Types
          • Automatic initialization and update of TIMESTAMP and DATETIME
          • YEAR Type
        • JSON Data Type
        • BLOB and TEXT data types
        • DATALINK Type
        • ENUM Type
        • UUID Type
        • Exact numerical type-Decimal type
        • Vector Types
      • SQL Statements
        • Classification of SQL statements
        • Data Definition Language (DDL)
          • CREATE DATABASE
          • CREATE INDEX
          • CREATE INDEX USING IVFFLAT
          • CREATE TABLE
          • CREATE TABLE AS SELECT
          • CREATE EXTERNAL TABLE
          • CREATE PITR
          • CREATE PUBLICATION
          • CREATE SEQUENCE
          • CREATE STAGE
          • CREATE...FROM...PUBLICATION...
          • CREATE VIEW
          • CREATE FUNCTION...LANGUAGE SQL AS
          • CREATE SOURCE
          • CREATE DYNAMIC TABLE
          • CREATE SNAPSHOT
          • ALTER TABLE
          • ALTER REINDEX
          • ALTER PITR
          • ALTER PUBLICATION
          • ALTER SEQUENCE
          • ALTER STAGE
          • ALTER VIEW
          • DROP DATABASE
          • DROP INDEX
          • DROP TABLE
          • DROP PITR
          • DROP PUBLICATION
          • DROP SEQUENCE
          • DROP STAGE
          • DROP SNAPSHOT
          • DROP VIEW
          • DROP FUNCTION
          • TRUNCATE TABLE
          • Rename Table
          • RESTORE ... FROM PITR
          • RESTORE ACCOUNT
          • RESTORE ... FROM SNAPSHOT
        • Data Manipulation Language (DML)
          • INSERT
          • INSERT INTO SELECT
          • DELETE
          • UPDATE
          • LOAD DATA INFILE
          • LOAD DATA INLINE
          • UPSERT
            • UPSERT
            • INSERT ... ON DUPLICATE KEY UPDATE
            • INSERT IGNORE
            • REPLACE
          • Information Functions
            • LAST_QUERY_ID()
            • LAST_INSERT_ID()
        • Data Query Language (DQL)
          • SELECT
          • SUBQUERY
            • Subquery
            • Derived Tables
            • Usage of subquery and comparison operators
            • Subqueries with ANY or SOME
            • Subqueries with ALL
            • Subqueries with EXISTS or NOT EXISTS
            • Subqueries with IN
          • JOIN
            • JOIN overview
            • INNER JOIN
            • LEFT JOIN
            • RIGHT JOIN
            • FULL JOIN
            • OUTER JOIN
            • NATURAL JOIN
          • WITH (Common Table Expressions)
          • Union Queries
            • UNION
            • INTERSECT
            • MINUS
            • Combination query (UNION, INTERSECT, MINUS)
        • Data Control Language (DCL)
          • CREATE ROLE
          • CREATE USER
          • ALTER USER
          • DROP USER
          • DROP ROLE
          • GRANT
          • REVOKE
        • Transactions (TCL)
          • START TRANSACTION / BEGIN
          • COMMIT
          • ROLLBACK
          • SET AUTOCOMMIT
        • Others
          • SHOW
            • SHOW ACCOUNTS
            • SHOW DATABASES
            • SHOW CREATE TABLE
            • SHOW CREATE VIEW
            • SHOW CREATE PUBLICATION
            • SHOW TABLES
            • SHOW INDEX
            • SHOW COLLATION
            • SHOW COLUMNS
            • SHOW FUNCTION STATUS
            • SHOW GRANTS
            • SHOW PROCESSLIST
            • SHOW PUBLICATIONS
            • SHOW PITR
            • SHOW ROLES
            • SHOW SEQUENCES
            • SHOW SNAPSHOTS
            • SHOW STAGES
            • SHOW SUBSCRIPTIONS
            • SHOW VARIABLES
          • SET
            • SET ROLE
          • USE
            • USE
          • KILL
          • Prepared
            • PREPARE
            • EXECUTE
            • DEALLOCATE PREPARE
          • Explain
            • EXPLAIN
            • EXPLAIN output format
            • Get information via EXPLAIN ANALYZE
      • Functions
        • Function total table
        • Aggregate Functions
          • ANY_VALUE
          • AVG
          • BITMAP Function
          • BIT_AND
          • BIT_OR
          • BIT_XOR
          • COUNT
          • GROUP_CONCAT
          • MAX
          • MEDIAN()
          • MIN
          • STDDEV_POP
          • SUM
          • VARIANCE
          • VAR_POP
        • Date and Time Functions
          • CONVERT_TZ()
          • CURDATE()
          • CURRENT_TIMESTAMP()
          • DATE()
          • DATE_ADD()
          • DATE_FORMAT()
          • DATE_SUB()
          • DATEDIFF()
          • DAY()
          • DAYOFYEAR()
          • EXTRACT()
          • HOUR()
          • FROM_UNIXTIME()
          • MINUTE()
          • MONTH()
          • NOW()
          • SECOND()
          • STR_TO_DATE()
          • SYSDATE()
          • TIME()
          • TIMEDIFF()
          • TIMESTAMP()
          • TIMESTAMPDIFF()
          • TO_DATE()
          • TO_DAYS()
          • TO_SECONDS()
          • UNIX_TIMESTAMP()
          • UTC_TIMESTAMP()
          • WEEK()
          • WEEKDAY()
          • YEAR()
        • Mathematical Functions
          • ABS()
          • ACOS()
          • ATAN()
          • CEIL()
          • ceiling()
          • COS()
          • COT()
          • EXP()
          • FLOOR()
          • LN()
          • LOG()
          • LOG2()
          • LOG10()
          • PI()
          • POWER()
          • ROUND()
          • RAND()
          • SIN()
          • SINH()
          • TAN()
        • String Functions
          • BIN()
          • BIT_LENGTH()
          • CHAR_LENGTH()
          • CONCAT()
          • CONCAT_WS()
          • EMPTY()
          • ENDSWITH()
          • FIELD()
          • FIND_IN_SET()
          • FORMAT()
          • FROM_BASE64()
          • HEX()
          • INSTR()
          • LCASE()
          • LEFT()
          • LENGTH()
          • LOCATE()
          • LOWER()
          • LPAD()
          • LTRIM()
          • MD5()
          • OCT(N)
          • REPEAT()
          • REVERSE()
          • RPAD()
          • RTRIM()
          • SHA1()/SHA()
          • SHA2()
          • SPACE()
          • SPLIT_PART()
          • STARTSWITH()
          • SUBSTRING()
          • SUBSTRING_INDEX()
          • TO_BASE64()
          • TRIM()
          • UCASE()
          • UNHEX()
          • UPPER()
          • Regular Expressions
            • Regular expression overview
            • NOT REGEXP
            • REGEXP_INSTR()
            • REGEXP_LIKE()
            • REGEXP_REPLACE()
            • REGEXP_SUBSTR()
        • Vector Functions
          • arithmetic operators
          • Mathematical function
          • CLUSTER_CENTERS
          • cosine_similarity()
          • COSINE_DISTANCE()
          • inner_product()
          • l1_norm()
          • l2_norm()
          • L2_DISTANCE()
          • NORMALIZE_L2()
          • SUBVECTOR()
          • vector_dims()
        • Table Functions
          • GENERATE_SERIES()
          • UNNEST()
        • Window Functions
          • DENSE_RANK()
          • RANK()
          • ROW_NUMBER()
        • JSON Functions
          • JQ()
          • JSON_EXTRACT()
          • JSON_EXTRACT_FLOAT64()
          • JSON_EXTRACT_STRING()
          • JSON_QUOTE()
          • JSON_ROW()
          • JSON_UNQUOTE()
          • TRY_JQ()
        • Other Functions
          • LOAD_FILE()
          • SAVE_FILE()
          • SAMPLE sampling function
          • SERIAL_EXTRACT function
          • SLEEP()
          • STAGE_LIST()
          • UUID()
        • System Operations Functions
          • CURRENT_ROLE_NAME()
          • CURRENT_ROLE()
          • CURRENT_USER_NAME()
          • CURRENT_USER, CURRENT_USER()
          • VERSION
          • PURGE_LOG()
      • Operators
        • INTERVAL
        • Operator Overview
        • operator priority
        • Arithmetic Operators
          • Overview of Arithmetic Operators
          • %,MOD
          • *
          • +
          • -
          • -
          • /
          • DIV
        • Assignment Operators
          • Assignment Operators Overview
          • =
        • Bitwise Operators
          • Binary Operator
          • &
          • >>
          • <<
          • ^
          • |
          • ~
        • Cast Functions and Operators
          • Overview of cast functions and operators
          • BINARY
          • CAST
          • CONVERT
          • DECODE()
          • ENCODE()
          • SERIAL()
          • SERIAL_FULL()
        • Comparison Functions and Operators
          • Compare functions and operator overview
          • >
          • >=
          • <
          • <>,!=
          • <=
          • =
          • BETWEEN ... AND ...
          • IN
          • IS
          • IS NOT
          • IS NOT NULL
          • IS NULL
          • ISNULL
          • ILIKE
          • LIKE
          • NOT BETWEEN ... AND ...
          • NOT IN
          • NOT LIKE
          • COALESCE()
        • Control Flow Functions
          • Overview of Control Flow Functions
          • CASE WHEN
          • IF
          • IFNULL
          • NULLIF
        • Logical Operators
          • Overview of logical operators
          • AND,&&
          • NOT,!
          • OR
          • XOR
      • System Variables
        • Server system variables
        • System Variable Parameters
          • SQL Mode
          • save_query_result Support to save query results
          • time_zone time zone support
          • lower_case_table_names case sensitive support
          • Foreign key constraint check
          • keep_user_target_list_in_result Keep the query result set column name consistent with the user's specified case
          • Illegal login restrictions
          • Password complexity verification
          • Connect to whitelist
        • Custom variables
      • System Tables
      • Privilege Categories
      • Limitations
        • MatrixOne's JDBC feature support list
        • Partition support and limitations
        • Instructions for MatrixOne Load Data Support
    • API Reference
      • Workspaces
        • List workspaces
        • Submit a workspace-creation task
        • List workspace-creation tasks
        • Create a workspace
        • Claim a workspace
        • Update a workspace
        • Accept a workspace invitation
        • Delete a workspace
      • Data connections
        • Connectors
          • List connectors
          • Get connector details
          • Create connector
          • Update a connector
          • Delete a connector
          • Validate connector configuration
        • Connector files
          • Query file list
          • Upload files
          • Preview file
          • Download file
          • Delete files
        • Browse databases
          • View browsable connectors
          • Query the connector database
          • Get database classification
          • Query the connector table
          • Query the connector table structure
        • Import tasks
          • Query task list
          • Query task details
          • Import task object fields
          • Create task
          • Upload locally and create an import task
          • Create a database structured loading task
          • Resolve a structured-load backfill start
          • Update task
          • Delete task
          • Pause task
          • Resume task
          • Query task file
          • Query running records
          • Get import task statistics
          • Retry failed files
        • Export tasks
          • Query task list
          • Query task details
          • Create task
          • Delete task
          • Configure an export target
          • Check an export target table name
          • Generate export target column mappings
          • Query export files
          • Query task status
          • Rerun the task
      • Data processing
        • Workflow
          • Create workflow
          • List workflows
          • Get workflow details
          • Update workflow
          • Pause workflow
          • Resume workflow
          • Delete workflow
        • Workflow templates
          • View workflow template list
          • View workflow template details
          • Create workflow template
          • Update workflow template
          • Delete workflow template
        • Workflow jobs
          • Start workflow job
          • View workflow jobs
          • View workflow job details
          • Refresh workflow job status
          • View workflow job results
          • View workflow job node
          • Pause workflow job
          • Resume workflow job
          • Cancel workflow job
          • Delete workflow job
          • View file execution records
        • Workflow reruns
          • View node rerun plan
          • Rerun from specified node
          • View workflow reruns
          • View workflow rerun details
          • Cancel workflow rerun
        • Workflow retries
          • Retry workflow job
          • Retry workflow jobs in batches
        • Custom operators
          • View custom operator list
          • View custom operator details
          • View custom operator code
          • Create custom operator
          • Update custom operator
          • Test-run custom operator
          • Enable custom operator
          • Disable custom operator
          • Manage custom operator MCP publishing
          • Delete custom operator
        • Workflow operator catalog
          • View workflow operator list
          • View workflow operator details
        • Operator API services
          • View operator API service configuration
          • Publish operator API service
          • Invoke operator API service
          • Enable operator API service
          • Disable operator API service
        • Data lineage
          • View file processing lineage
          • View processing result lineage
          • View processing node details
          • View processing result output contents
          • View processing result output version list
          • Create processing result output version
          • Set processing result effective version
          • View node output contents
          • View node output version list
          • Create node output version
          • Set node effective version
          • Rerun processing node
          • Rerun processing node with specified output version
        • SQL execution
          • Execute SQL
          • View execution status
          • Cancel execution
          • View execution result
          • Download execution result
        • SQL metadata
          • View database list
          • View tables and views in a database
          • View table information
          • View table column list
          • View table or view creation statement
          • Delete database
          • Delete table
          • Delete view
        • SQL workbooks
          • View SQL workbook list
          • View SQL workbook version content
          • Create SQL workbook
          • Update SQL workbook name
          • Delete SQL workbook
          • View SQL workbook version list
          • Create SQL draft version
          • Update SQL draft version
          • Finalize SQL version
        • Data dashboard
          • View data dashboard list
          • View data dashboard details
          • Create data dashboard
          • Update data dashboard
          • Delete data dashboard
          • Create dashboard chart
          • Update dashboard chart
          • Delete dashboard chart
          • Preview dashboard chart SQL
          • Generate dashboard chart SQL draft
          • Run dashboard chart
          • View dashboard chart result
          • Download dashboard chart result
          • Refresh all dashboard charts
      • Resource center
        • Catalog
          • Browse resources
            • Browse catalogs, databases, volumes and tables
            • Query the Catalog system tree
          • Manage Catalogs
            • Query Catalog list
            • Query Catalog details
            • Create Catalog
            • Update Catalog
            • Delete Catalog
          • Databases
            • Query database list
            • Query database details
            • Create database
            • Update database
            • Delete database
            • Query objects in the database
            • Query database table leaf nodes
            • Run NL2SQL
          • File storage
            • Query volume details
            • Create volume
            • Update volume
            • Delete volume
            • Query the full path of the volume
            • Query file list
            • Query file details
            • Create file
            • Delete files
            • Upload files
            • Preview file
            • Download file
            • Create folder
            • Update folder
            • Delete folder
            • Clear the folder
            • Trigger file workflow
          • Tables
            • Query table information
            • Query table overview
            • Query table full path
            • Query table data
            • Preview table data
            • Create table
            • Check if the table exists
            • Clear the table
            • Delete table
            • Batch query table information
          • References
            • Query Catalog reference
            • Query table reference
            • Query volume reference
            • Query folder references
            • Dereference file
          • Processing results
            • Query data assets
            • Query data assets in batches
            • Query file products
            • Batch parsing file products
        • Knowledge Base
          • Manage knowledge bases
            • Query the knowledge base list
            • Query knowledge base tags
            • Query knowledge base details
            • Create knowledge base
            • Create a data-side empty knowledge base
            • Create a knowledge base and add data sources
            • Update knowledge base
            • Delete knowledge base
          • Data
            • Upload local files
            • Upload local files before creation
            • Query data source list
            • Preview the data source to be added
            • Preview the data source when created
            • Check if the data source has been added
            • Add data source
            • Complete the relationship between historical data sources
            • Update data source management settings
            • Delete data source
          • Documents and segments
            • Query document details
            • Preview source original file
            • Preview analysis products
            • Create segments
            • Update segments
            • Enable or disable segmentation
            • Delete segment
            • Revectorize
          • Processing tasks
            • Query data processing tasks
            • Coordinate data processing tasks
          • Semantic entries
            • Query semantic entries
            • Create semantic entries
            • Update semantic entries
            • Delete semantic entries
            • Import semantic entries
            • Export semantic entries
            • Verify semantic entries
        • Compute instances
          • Computing resources
            • List calculation instances
            • Query calculation instance details
            • Create a calculation instance
            • Update calculation instance
            • Check the calculation instance before deleting it
            • Delete calculation instance
            • Pause the calculation instance
            • Restore computing instance
            • Retry the compute instance operation
            • Query Worker runtime
            • List Worker images
            • Take over ownership of historical compute resources
          • Computing resource specifications
            • List calculation specifications
            • Query calculation specification management permissions
            • Create calculation specification
            • Update calculation specifications
            • Enable or disable calculation specifications
        • Data publishing
          • Query data release list
          • Query release summary
          • Query the source database table
          • Check release name
          • Query the workspace name
          • Batch parse workspace names
          • Create data publication
          • Update data release
          • Delete data release
        • Data subscription
          • Query data subscription list
          • Accept data subscription
          • Cancel data subscription
      • Monitoring
        • Get task execution overview
        • List SQL execution records
        • Get SQL execution details
        • Get SQL execution profile
        • Get SQL history overview
        • List operation logs
        • Get operation log overview
      • Users and permissions
        • Users and tags
          • User management
            • List users
            • Create a user
            • Update user information
            • Update user status
            • Delete a user
          • Roles and audit records
            • Get user role bindings
            • Update user role bindings
            • List user audit events
          • User tags
            • View user tag list
            • Create a user tag
            • Update a user tag
            • Delete a user tag
        • Roles and permissions
          • Role management
            • View role list
            • Update a role
            • Update role lifecycle
            • View role deletion impact
            • Delete a role
          • Role permissions and impact
            • View role permission view
            • View role ownership impact
            • View role audit events
          • Role inheritance
            • View role inheritance relationships
            • View the role inheritance graph
            • Add role inheritance
            • Remove role inheritance
          • Data permissions
            • View data privileges
            • Validate data privileges
            • Apply data privileges
            • View data privilege operation
            • Repair data privilege operation
            • View grantable resources
            • Batch view grantable resources
          • Object permissions
            • View object permission view
            • Validate object grants
            • Apply object grants
          • Application permissions
            • View permission schema
            • View current identity roles
            • Validate application permission policy
            • Apply application permission policy
      • Agents
        • Agent management
          • Agent
            • Query the list of agents
            • Query agent details
            • Create an agent
            • Update agent
            • Delete the agent
            • Query resource binding
            • Update resource binding
            • Update model binding
            • Query execution strategy
            • Update running strategy
            • Query the agent version
            • Delete agent version
            • Set as default version
            • Disable agent version
            • Bind the running environment
            • Re-coordinate the running environment
          • Agent building
            • Generate agent candidate solutions
            • Query the current agent configuration
            • Regenerate agent candidate solutions
            • Cancel the agent candidate plan
            • Confirm agent candidate solutions
            • Query available resources for agent construction
          • Agent package
            • Load the agent package
            • Export agent package
        • Resources and integrations
          • Agent model configuration
            • List available models
            • Query model configuration list
            • Query model configuration details
            • Create model configuration
            • Update model configuration
          • Agent knowledge base
            • Query the knowledge base list
            • Query knowledge base details
            • Create agent knowledge base metadata
            • Update agent knowledge base metadata
          • Tools
            • Query tool list
            • Query tool details
            • Create tool
            • Update tool
            • Query tool tag
            • Query the agent that references this tool
            • Query GitHub tool connection
            • Save GitHub tool connection
            • Delete GitHub tool connection
            • Query Grafana tool connection
            • Save Grafana tool connection
            • Delete Grafana tool connection
            • Query email tool connection
            • Save email tool connection
            • Delete mail tool connection
            • Generate enterprise WeChat callback key
          • Skills
            • Query skill list
            • Query skill details
            • Create skills
            • Update skills
            • Query skill tags
            • Execute skills
            • Streaming polishing skill draft
            • Check skill pack
            • Import skill pack
            • Query skill files
            • Download skill file
            • Query skill version
            • Set the current skill version
            • Query the agent that references this skill
          • Agent connection
            • Query the connection list
            • Query connection details
            • Create connection
            • Update connection
            • Detect MCP connection
            • Create MCP tools in batches
          • Channel instance
            • Query channel instance list
            • Query channel instance details
            • Create channel instance
            • Update channel instance
            • Delete channel instance
            • Test unsaved channel configuration
            • Test the created channel instance
        • Invocation and runtime
          • Call the agent
            • Get agent invocation information
            • Call an agent from another agent
            • Called from MCP client
          • session
            • Query session list
            • Query session details
            • Create session
            • Update session
            • Query session messages
          • Agent feedback
            • Query feedback
            • Query feedback statistics
          • Observation when the agent is running
            • Query runtime data sharding
            • Query the runtime task list
            • Query runtime task details
            • Query runtime task events
            • Query runtime list
            • Query runtime round snapshot
          • Agent resource operation
            • Query resource operation list
            • Query resource operation details
            • Cancel resource operation
        • Automation and workflows
          • Automate tasks
            • Query the automation task list
            • Query automation task details
            • Create automated tasks
            • Update automated tasks
            • Archive automation tasks
            • Start automated task running
            • Query automation task running details
            • Query automation task running events
            • Query the results of automated task execution
          • Callback rules
            • Query callback rule list
            • Query callback rule details
            • Create callback rules
            • Update callback rules
            • Delete callback rules
          • Agent task template
            • Query the list of agent task templates
            • Query the details of the agent task template
            • Create agent task template
            • Update agent task template
          • Agent workflow binding
            • Query the agent workflow binding list
            • Query the agent workflow binding details
            • Create agent workflow binding
            • Update agent workflow binding
        • Runtime and system configuration
          • Runtime provider
            • Query the runtime provider list
            • Query runtime provider Profile
          • Run policy configuration
            • Query the running policy list
            • Query the details of the running strategy
            • Create a run strategy
            • Update running strategy
          • System agent configuration
            • Query system agent configuration
            • Query the system agent GitHub project
            • Query the system agent GitHub project according to the new configuration
            • Update system agent configuration
    • Error Codes
Back to top
Reference › OmniFabric SQL Reference › SQL Statements › Others › USE

USE¶

  • USE
Last updated on Oct 29, 2026
USE
SET ROLE
Copyright © 2026, CloudSigma
Made with Sphinx and @pradyunsg's Furo