1.1.1

Table Of Contents
Chapter 56
SQL Language Reference
Read about the SQLFire implementation of SQL keywords, statements, clauses, expressions, functions, and more.
Note: Many of the topics in this section were adapted from the Apache Derby documentation source les, and
are subject to the Apache license:
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
Keywords and Identifiers
SQL statements are provided as strings to SQLFire that must follow several rules.
Permitted character set is unicode
Single quotation marks delimit character strings
Within a character string, a single quotation mark itself can be represented using two single quotation marks
SQL keywords and identiers are case-insensitive
Double quotation marks denote delimited identiers as in the next section
In accordance with SQL-92 standard, comments can be single-line or multi-line. Single-line comments start
with two dashes (--) and end with the newline character while multi-line comments start with forward slash
star (/*) and end with start forward slash (*/).
Standard SQL Identifiers
Two categories of identiers are dened in SQL-92 standard: ordinary and delimited.
The rules mentioned here for SQL identiers apply to all names used in SQL statements including table-name,
column-name, view-name, synonym-name, constraint-name, correlation-name, index-name, trigger-name,
function-name and procedure-name. There are two categories of identiers as dened in SQL-92 standard:
ordinary and delimited. The ordinary names must follow the below mentioned rules:
471