An identifier is a token used to form a name. An identifier in an SQL statement is one of the following types:
There are two types of SQL identifiers: ordinary identifiers and delimited identifiers.
The following characters are not allowed within delimited identifiers:
A system identifier is used to form the name of system objects in i5/OS. There are two types of system identifiers: ordinary identifiers and delimited identifiers.
For example, "PRIVILEGES" is in uppercase and the characters within the delimiters form an ordinary identifier; therefore, it has a length of 10 bytes and is a valid system name for a column. On the other hand, "privileges" is in lowercase, has a length of 12 bytes, and is not a valid system name for a column because the bytes required for the delimiters must be included in the length of the identifier.
WKLYSAL WKLY_SAL "WKLY_SAL" "UNION" "wkly_sal"
A host-identifier is a name declared in the host program. The rules for forming a host-identifier are the rules of the host language; except that DBCS characters cannot be used. For example, the rules for forming a host-identifier in a COBOL program are the same as the rules for forming a user-defined word in COBOL. Names beginning with the characters 'SQ'16, 'SQL', 'sql', 'RDI', or 'DSN' should not be used because precompilers generate host variables that begin with these characters. In Java™, do not use names beginning with '__sJT_'.
See Table 2 for the limits on the maximum size of the host identifier name imposed by DB2 UDB for iSeries.