For the complete documentation index, see llms.txt. This page is also available as Markdown.

Grammar Reference

Reference for the shared SQL grammar elements used across GridGain 9 DDL, DML, and other SQL statements, with the BNF syntax for each production.

This section describes grammar elements that are common to multiple SQL functions (DDL, Distribution Zones, etc.).

assign

identifier = expression

Parameters

  • identifier - the name of table, column or other element that will be updated by the operation.

  • expression - a valid SQL expression that returns the values that must be assigned to the identifier.

Referenced by:

column_definition

column_name data_type [ [NOT] NULL ]
  [ DEFAULT { rand_uuid()
            | NEXTVAL ( sequence_name )
            | literal_value
            | CURRENT_TIMESTAMP + INTERVAL interval_string interval_qualifier } ]
  [ PRIMARY KEY ]
Railroad diagram for column_definition — equivalent to the BNF above

Keywords and parameters:

  • column_name - a column name.

  • DATA TYPE - the data type allowed in the column.

  • rand_uuid() - the function that generates a random UUID identifier.

  • sequence_name - the name of the sequence to use with NEXTVAL() function.

  • literal_value - a value to be assigned as default.

  • CURRENT_TIMESTAMP - the function that returns current time. Can only be used for TIMESTAMP WITH LOCAL TIME ZONE columns.

  • interval_string - a string literal representing an integer number that specifies the offset amount. For example: '1', '5', or '30'. If the interval is '0', current time is used

  • interval_qualifier - the time unit for the interval offset. Can be one of:

    • SECOND or SECONDS

    • MINUTE or MINUTES

    • HOUR or HOURS

    • DAY or DAYS

    • MONTH or MONTHS

Referenced by:

column_definition_or_list

Railroad diagram for column_definition_or_list — equivalent to the BNF above

Keywords and parameters:

  • column_name - a column name.

  • data_type - a valid data type.

Referenced by:

column_list

Railroad diagram for column_list — equivalent to the BNF above

Keywords and parameters:

  • column_name - a column name.

Referenced by:

column_name_or_list

Keywords and parameters:

  • column_name - a column name.

Referenced by:

constraint

Railroad diagram for constraint — equivalent to the BNF above

Keywords and parameters:

  • constraint_name - a name of the constraint.

Referenced by:

group_item

Parameters

  • expression - a valid SQL expression that returns the values that must be assigned to the identifier.

Referenced by:

join_condition

Parameters

  • boolean_expression - an SQL expression that returns a boolean value. Only the records for which TRUE was returned will be returned. If not specified, all matching records are returned.

Referenced by:

order_item

Parameters

  • expression - a valid SQL expression that denotes the specific item in the SELECT clause.

Referenced by:

parameter

Parameters:

  • parameter_name - the name of the parameter.

  • parameter_value - the value of the parameter.

When a parameter is specified, you can provide it as a literal value or as an identifier. For example:

In this case, test_zone is the identifier, and is used as an identifier. When used like this, the parameters are not case-sensitive.

In this case, test_zone is created as a literal value, and is used as a literal. When used like this, the parameter is case-sensitive.

In this case, test_zone is created as an identifier, and is case-insensitive. As such, when TEST_ZONE is used as a literal, it still matches the identifier.

Referenced by:

project_item

Parameters

  • expression - a valid SQL expression that denotes the specific item in the SELECT clause.

  • table_alias - a qualified table alias to use.

Referenced by:

qualified_table_name

Railroad diagram for qualified_table_name — equivalent to the BNF above

Keywords and parameters:

  • schema - a name of the table schema.

  • table_name - a name of the table.

Referenced by:

query

Parameters

  • expression - a valid SQL expression.

  • start - the number of result to start the query from.

  • count - the number of values to fetch.

Referenced by:

select_without_from

Referenced by:

sorted_column_list

Keywords and parameters:

  • column_name - a column name.

  • NULLS FIRST - if specified, places any NULL values before all non-NULL in that column's ordering.

  • NULLS LAST - if specified, places NULLs after all non-NULLs in that column's ordering.

Referenced by:

table_expression

Parameters

Referenced by:

table_primary

Parameters

  • hint_comment - an sql optimizer hint.

  • expression - a valid SQL expression.

  • function_name - the name of the SQL function to use.

Referenced by:

table_reference

Parameters

  • alias - the alias that will be used for the table.

  • column_alias - the alias used for column.

Referenced by:

with_item

Referenced by:

This page is: Copyright © 2026 MariaDB. All rights reserved.

spinner

Last updated

Was this helpful?