Skip to main content

SQL Statements Index

Access Method

Cast

Collation

Conversion

Cursor

  • DECLARE - Defines a cursor.
  • CLOSE - Closes a cursor.
  • FETCH - Retrieves rows from a query using a cursor.
  • MOVE - Positions a cursor.
  • RETRIEVE - Retrieves rows from a query using a parallel retrieve cursor.

Database

  • CREATE DATABASE - Creates a new database.
  • ALTER DATABASE - Changes the attributes of a database.
  • DROP DATABASE - Removes a database.
  • ANALYZE - Collects statistics about a database.
  • VACUUM - Garbage-collects and optionally analyzes a database.
  • CHECKPOINT - Forces a write-ahead log checkpoint.
  • COMMENT - Defines or changes the comment of an object.
  • COPY - Copies data between a file and a table.
  • LOAD - Loads or reloads a shared library file.

Domain

Extension

External Table

Foreign Data Wrapper

Function & Aggregate Function

Function

Aggregate Function

Foreign Table

User & Group

  • CREATE ROLE - Defines a new database role (user or group).
  • ALTER ROLE - Changes a database role (user or group).
  • SET ROLE - Sets the current role identifier of the current session.
  • DROP ROLE - Removes a database role.
  • CREATE USER - Defines a new database role.
  • ALTER USER - Changes the definition of a database role.
  • DROP USER - Removes a database role.
  • CREATE GROUP - Defines a new database role.
  • ALTER GROUP - Changes a role name or membership.
  • DROP GROUP - Removes a database role.
  • DROP OWNED - Removes database objects owned by a database role.
  • REASSIGN OWNED - Changes the ownership of database objects owned by a database role.

Index

Notification

  • NOTIFY - Generates a notification.
  • LISTEN - Listens for a notification.
  • UNLISTEN - Stops listening for a notification.

Procedural Language

  • CREATE LANGUAGE - Defines a new procedural language.
  • ALTER LANGUAGE - Changes the definition of a procedural language.
  • DROP LANGUAGE - Removes a procedural language.
  • DO - Runs anonymous code block as a transient anonymous function.

View and Materialized View

Operator & Operator Class & Operator Family

Operator

Operator Class

Operator Family

Privilege & Security

Privilege

Row-level Security Policy

  • CREATE POLICY - Defines a new row-level security policy for a table.
  • ALTER POLICY - Changes the definition of a row-level security policy.
  • DROP POLICY - Removes a row-level security policy from a table.

Procedure

Protocol

  • CREATE PROTOCOL - Registers a custom data access protocol that can be specified when defining a Cloudberry Database external table.
  • ALTER PROTOCOL - Changes the definition of a protocol.
  • DROP PROTOCOL - Removes a data access protocol from a database.

Resource Management

Resource Group

Resource Queue

Routine

Rule

Row

  • INSERT - Creates new rows in a table.
  • SELECT - Retrieves rows from a table or view.
  • UPDATE - Updates rows of a table.
  • VALUES - Computes a set of rows.

Schema

Sequence

Session

Foreign Server

Statistics Object

Table

Tablespace

Text Search Configuration

Text Search Dictionary

Text Search Parser

Text Search Template

Transform

Trigger

Data Type

Transaction

  • BEGIN - Starts a transaction block.
  • ABORT - Terminates the current transaction.
  • COMMIT - Commits the current transaction.
  • END - Commits the current transaction.
  • ROLLBACK - Stops the current transaction.
  • START TRANSACTION - Starts a transaction block.
  • SET TRANSACTION - Sets the characteristics of the current transaction.
  • SAVEPOINT - Defines a new savepoint within the current transaction.
  • RELEASE SAVEPOINT - Destroys a previously defined savepoint.
  • ROLLBACK TO SAVEPOINT - Rolls back the current transaction to a savepoint.
  • LOCK - Locks a table.
  • SET CONSTRAINTS - Sets constraint check timing for the current transaction.

Configuration Parameter

  • SET - Changes the value of a run-time Cloudberry Database configuration parameter.
  • RESET - Restores the value of a run-time system configuration parameter to the default value.
  • SHOW - Shows the value of a run-time system configuration parameter.

SQL Statement

  • PREPARE - Prepares a statement for execution.
  • DEALLOCATE - Deallocates a prepared statement.
  • EXECUTE - Runs a prepared SQL statement.
  • EXPLAIN - Shows the query plan of a statement.