Skip to main content
Version: 6.0-SNAPSHOT

SQL Statements

Hazelcast supports the following SQL statements. Explore the available statements and find more details about them.

DML Statements​

StatementUsage
SELECTRead data from a table.
SINK INTO/INSERT INTOAdd data to a map and/or forward data to other systems.
UPDATEOverwrite data in a table.
DELETEDelete data from a table.

DDL Statements​

StatementUsage
CREATE MAPPINGMap a local or remote data object to a table that Hazelcast can access.
SHOW MAPPINGSGet the names of existing mappings.
DROP MAPPINGRemove a mapping.
CREATE VIEWCreate a virtual table based on the result set of a SQL query. Views can be reused in other queries.
DROP VIEWDelete a view.
CREATE DATA CONNECTIONCreate the metadata required to connect to an external system for later use.
DROP DATA CONNECTIONDelete a data connection.
SHOW RESOURCESGet the names of accessible resources for a data connection.
CREATE INDEXCreate a sorted, hash, or bitmap index for a given map.

Job Management​

StatementUsage
CREATE JOBCreate a job that is not tied to the client session.
ALTER JOBRestart, suspend, or resume a job.
SHOW JOBSGet the names of all running jobs.
DROP JOBCancel a job.
CREATE OR REPLACE SNAPSHOT Enterprise EditionThis feature requires Hazelcast Enterprise, a licensed edition of the Hazelcast Platform.Create a snapshot of a running job so you can stop and restart it at a later date.
DROP SNAPSHOT Enterprise EditionThis feature requires Hazelcast Enterprise, a licensed edition of the Hazelcast Platform.Drop an existing snapshot.