Statements

  • reference
    +
    Statements are the commands that make up a SQL++ query. They can be categorized into three main groups: data definition language, data control language, and data manipulation language.

    Data Control Language

    Data control language (DCL) statements enable you to control which users or groups have access to data, and what they’re permitted to do with that data.

    Data Manipulation Language

    Data manipulation language (DML) statements enable you to create, read, update, and delete data. Some DML statements may be further categorized as data query language, transaction control language, or utility statements.

    Data Query Language

    Data query language (DQL) statements enable you to read and filter data and manipulate the results.

    Transaction Control Language

    Transaction control language (TCL) statements enable you to work with Couchbase transactions.

    Utility Statements

    Utility statements do not manipulate data directly, but support other operations. For example, you can create and execute prepared statements, see query plans, get advice on query or index creation, and so on.