Hitachi

Hitachi Advanced Database SQL Reference


6.1.4 Specifying names

Organization of this subsection

(1) Names

The following specification are specified as names.

There are two ways of specifying a name: with double quotation marks (") or without double quotation marks. When specifying a name, it is recommended that the name be enclosed in double quotation marks. When a name is enclosed in double quotation marks, it is treated as case-sensitive.

Note

The name cannot be the same as the reserved word, but can be the same as the reserved word if enclosed in double quotation marks. Since reserved words may be added as SQL is extended, enclose the names in double quotation marks in advance to avoid duplicate problems with reserved words added later.

The name is specified as an identifier. There are two types of identifiers: normal identifiers, which are specified without double quotation marks ("), and delimited identifiers, which are specified with double quotation marks ("). Note the following rules for specifying normal identifiers and delimited identifiers.

(2) Rules for characters that can be used in names

(3) What to do if a name conflicts with an SQL reserved word

Change the SQL statement by enclosing the name that is in conflict with a reserved word in double quotation marks ("), thus specifying it in the delimited identifier format.

Note that if a name containing alphabetic characters is enclosed in double quotation marks ("), it becomes case sensitive.