SQL statement syntax#
This section describes the syntax for SQL statements that can be executed in Trino.
Refer to the following sections for further details:
- ALTER MATERIALIZED VIEW
- ALTER SCHEMA
- ALTER TABLE
- ALTER VIEW
- ANALYZE
- CALL
- COMMENT
- COMMIT
- CREATE CATALOG
- CREATE FUNCTION
- CREATE MATERIALIZED VIEW
- CREATE ROLE
- CREATE SCHEMA
- CREATE TABLE
- CREATE TABLE AS
- CREATE VIEW
- DEALLOCATE PREPARE
- DELETE
- DENY
- DESCRIBE
- DESCRIBE INPUT
- DESCRIBE OUTPUT
- DROP CATALOG
- DROP FUNCTION
- DROP MATERIALIZED VIEW
- DROP ROLE
- DROP SCHEMA
- DROP TABLE
- DROP VIEW
- EXECUTE
- EXECUTE IMMEDIATE
- EXPLAIN
- EXPLAIN ANALYZE
- GRANT privilege
- GRANT role
- INSERT
- MATCH_RECOGNIZE
- MERGE
- PREPARE
- REFRESH MATERIALIZED VIEW
- RESET SESSION
- RESET SESSION AUTHORIZATION
- REVOKE privilege
- REVOKE role
- ROLLBACK
- SELECT
- SET PATH
- SET ROLE
- SET SESSION
- SET SESSION AUTHORIZATION
- SET TIME ZONE
- SHOW CATALOGS
- SHOW COLUMNS
- SHOW CREATE MATERIALIZED VIEW
- SHOW CREATE SCHEMA
- SHOW CREATE TABLE
- SHOW CREATE VIEW
- SHOW FUNCTIONS
- SHOW GRANTS
- SHOW ROLE GRANTS
- SHOW ROLES
- SHOW SCHEMAS
- SHOW SESSION
- SHOW STATS
- SHOW TABLES
- START TRANSACTION
- TRUNCATE
- UPDATE
- USE
- VALUES