Hologres is compatible with PostgreSQL. This topic describes the SQL statements supported by Hologres.
For more information about how to use the SQL statements that are compatible with PostgreSQL, see official PostgreSQL documentation.
A
SQL statement | Description |
Modifies a table. Modifications to a parent partitioned table are automatically applied to the child partitioned tables. For information about how to modify partitioned tables and foreign tables, see the following topics: | |
Modifies a database role. | |
Updates statistics. | |
Modifies a database. | |
Defines default access privileges. | |
Modifies a foreign data wrapper (FDW). | |
Modifies a foreign table. | |
Modifies a group. | |
Changes the procedural language. | |
Modifies a schema. | |
Modifies an external server. | |
Chanages a database role. | |
Modifies a user mapping. | |
Changes a view. |
B
SQL statement | Description |
Starts a transaction. The |
C
SQL statement | Description |
Calls a stored procedure or function. | |
Commits a transaction. The | |
Creates a database. | |
Creates an extension. | |
Creates an FDW. | |
Creates a foreign table. Hologres supports only foreign tables that are sourced from MaxCompute. | |
Creates a user group. | |
Creates an external server. | |
Creates a table. Hologres supports only specific features of the
Hologres supports only list partitions. The partition fields that you specify in PARTITION BY LIST must be of the STRING type and contain unique values. | |
Creates a view. | |
Creates a user. | |
Creates a user mapping. | |
Disables a cursor. | |
Defines or modifies the comment of an object. | |
Creates a procedural language. | |
Creates a materialized view. | |
Creates a database role. | |
Creates a schema. | |
Creates a table from query results. |
D
SQL statement | Description |
Drops a database. | |
Drops an FDW. | |
Drops a foreign table. | |
Drops a user group. | |
Drops the database objects that are owned by a database role. | |
Drops a role. | |
Drops an external server. | |
Drops a table. | |
Drops a user. | |
Drops a user mapping. | |
Releases a prepared statement. | |
Deletes a row of data from a table. | |
Clears the previous session. | |
Drops a materialized view. | |
Drops a schema. | |
Drops a view. |
E
SQL statement | Description |
Commits a transaction. The | |
Views an execution plan. | |
Executes a prepared statement. |
F
SQL statement | Description |
Uses a cursor to search for rows from a query. |
G
SQL statement | Description |
Defines access privileges. |
I
SQL statement | Description |
Inserts data into a table. |
P
SQL statement | Description |
Prepares a statement for execution. |
R
SQL statement | Description |
Rolls back a transaction. | |
Changes the ownership of database objects that are owned by a database role. | |
Destroys a previously defined savepoint. | |
Sets runtime parameters to their default values. | |
Revokes access privileges. |
S
SQL statement | Description |
Queries data from a table. Hologres supports only specific features of the
| |
Configures Grand Unified Configuration (GUC) parameters. For more information, see GUC parameters. | |
Defines a new savepoint in the current transaction. | |
Defines a new table from query results. | |
Sets a session identifier for the current user. | |
Sets a session user identifier and a current user identifier for the current session. | |
Sets the characteristics of the current transaction. | |
Shows the value of a runtime parameter. | |
Starts a transaction block. |
T
SQL statement | Description |
Clears all data from a table or a group of tables. |
U
SQL statement | Description |
Updates a row in a table. |
V
SQL statement | Description |
Collects garbage and optionally analyzes a database. | |
Calculates a set of rows. |