Keywords; Reserved Words - Sybase Adaptive Server Anywhere Reference

Table of Contents

Advertisement

Keywords

Keywords

Reserved words

220
Each SQL statement contains one or more keywords. SQL is case insensitive
to keywords, but throughout these manuals, keywords are indicated in upper
case.
For example, in the following statement, SELECT and FROM are keywords:
SELECT *
FROM employee
The following statements are equivalent to the one above:
Select *
From employee
select * from employee
sELECT * FRoM employee
Some keywords cannot be used as identifiers without surrounding them in
double quotes. These are called reserved words. Other keywords, such as
DBA, do not require double quotes, and are not reserved words.
Some keywords in SQL are also reserved words. To use a reserved word in
a SQL statement as an identifier, you must enclose it in double quotes.
Many, but not all, of the keywords that appear in SQL statements are
reserved words. For example, you must use the following syntax to retrieve
the contents of a table named SELECT.
SELECT *
FROM "SELECT"
Because SQL is not case sensitive with respect to keywords, each of the
following words may appear in upper case, lower case, or any combination
of the two. All strings that differ only in capitalization from one of the
following words, are reserved words.
If you are using Embedded SQL, you can use the database library function
sql_needs_quotes to determine whether a string requires quotation marks.
A string requires quotes if it is a reserved word or if it contains a character
not ordinarily allowed in an identifier.
The SQL keywords in Adaptive Server Anywhere 7 are as follows:

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents