Join the free CrateDB workshop for new and experienced users: October 10th and 11th, 2023; 2:00–4:00 pm CET.

Register now
CrateDB Logo
  • Product
    • Features
    • Architecture
    • Query examples
    • Integrations
    • Pricing
    • Deploy now
  • Solutions
    • Internet of Things
    • Time-series
    • Log analysis
    • Geospatial data
    • Application backend
    • AI/ML
    • Digital twins
  • Customers
  • Developers
    • Community
    • Events
    • GitHub
    • Blog
    • Support
    • Social channels
  • Documentation
  • Login
  • Get CrateDB
Toggle Doc Menu
Search
    • CrateDB Cloud
    • Self-Managed
    • Getting Started
    • Reference Manual
      • Concepts
      • CLI tools
      • Configuration
      • General use
      • Administration
      • SQL syntax
        • General SQL
        • SQL Statements
      • Client interfaces
      • Appendices
    • Admin UI
    • Crash CLI
    • Drivers and Integrations
    • Support
    • Community
    • Integration Tutorials
    • Sample Applications
  Feedback

  Suggest improvement

  Edit page

  View page source

5.4

SQL syntax¶

You can use Structured Query Language (SQL) to query your data.

This section of the documentation provides a complete SQL syntax reference for CrateDB.

Note

For introductions to CrateDB functionality, we recommend you consult the appropriate top-level section of the documentation. The SQL syntax reference assumes a basic familiarity with the relevant parts of CrateDB.

See also

General use: Data definition

General use: Data manipulation

General use: Querying

General use: Built-in functions and operators

  • General SQL
    • Constraints
    • Value expressions
    • Lexical structure
  • SQL Statements
    • ALTER CLUSTER
    • ALTER PUBLICATION
    • ALTER TABLE
    • ALTER USER
    • ANALYZE
    • BEGIN
    • CLOSE
    • COMMIT
    • COPY FROM
    • COPY TO
    • CREATE ANALYZER
    • CREATE BLOB TABLE
    • CREATE FUNCTION
    • CREATE PUBLICATION
    • CREATE REPOSITORY
    • CREATE SNAPSHOT
    • CREATE SUBSCRIPTION
    • CREATE TABLE
    • CREATE TABLE AS
    • CREATE USER
    • CREATE VIEW
    • DEALLOCATE
    • DECLARE
    • DELETE
    • DENY
    • DISCARD
    • DROP ANALYZER
    • DROP FUNCTION
    • DROP PUBLICATION
    • DROP REPOSITORY
    • DROP SNAPSHOT
    • DROP SUBSCRIPTION
    • DROP TABLE
    • DROP USER
    • DROP VIEW
    • END
    • EXPLAIN
    • FETCH
    • GRANT
    • INSERT
    • KILL
    • OPTIMIZE
    • REFRESH
    • RESTORE SNAPSHOT
    • REVOKE
    • SELECT
    • SET and RESET
    • SET LICENSE
    • SET AND RESET SESSION AUTHORIZATION
    • SET TRANSACTION
    • SHOW (session settings)
    • SHOW COLUMNS
    • SHOW CREATE TABLE
    • SHOW SCHEMAS
    • SHOW TABLES
    • START TRANSACTION
    • UPDATE
    • VALUES
    • WITH

Subscribe to the CrateDB Newsletter now

CrateDB Logo
  • Imprint
  • Contact
  • Legal
Follow us
Follow us on Twitter Follow us on LinkedIn Follow us on Facebook Follow us on Instagram Follow us on Facebook