Hitachi

Hitachi Advanced Database SQL Reference


6.1.2 Rules for separators

Organization of this subsection

(1) About separators

When writing SQL statements, you need to put separators between two keywords, or between keywords and names, and so on. Separators include the following:

(2) Where separators must be inserted

Separators must be inserted in the following places:

Examples of where separators must be inserted are shown in the following figure.

Figure 6‒2: Examples of where separators must be inserted

[Figure]

(3) Where separators cannot be inserted

Separators cannot be inserted in the following places:

Examples of where separators cannot be inserted are shown in the following figure.

Figure 6‒3: Examples of where separators cannot be inserted

[Figure]

(4) Where separators can be inserted

Separators can be inserted in the following places:

Examples of where separators can be inserted are shown in the following figure.

Figure 6‒4: Examples of where separators can be inserted

[Figure]

(5) Comments

You can add a comment at any location in an SQL statement where a separator can be inserted. Comments are illustrated in the example below.

Example
SELECT "C1","C2" FROM "T1"    /* comment1 */
    ORDER BY "C1" ASC         /* comment2 */

The underlined portions are comments. Everything between the /* and the */ is considered part of the comment.

When writing comments, the following guidelines must be observed: