In an SQL identifier, a letter can be any character in the alpha class that the locale defines. The alpha class lists all characters that are classified as alphabetic. For more information about character classification, see The CTYPE Category. In the default locale, the alpha class of the code set includes the ASCII characters in the ranges a to z and A to Z. SQL identifiers can use these ASCII characters wherever letter is valid in an SQL identifier.
In a nondefault locale, the alpha class of the locale also includes the ASCII characters in the ranges a to z and A to Z. It might also include non-ASCII characters, such as letters from non-Roman alphabets (such as Greek or Cyrillic) or ideographic characters. For example, the alpha class of the Japanese UJIS code set (in the Japanese UJIS locale) contains Kanji characters. When IBM Informix products use a nondefault locale, SQL identifiers can use non-ASCII characters wherever letter is valid in the syntax of an SQL identifier. A non-ASCII character is also valid for letter as long as this character is listed in the alpha class of the locale.
The SQL statements in the following example use non-ASCII characters as letters in SQL identifiers:
CREATE DATABASE marché; CREATE TABLE équipement ( code NCHAR(6), description NVARCHAR(128,10), prix_courant MONEY(6,2) ); CREATE VIEW çà_va AS SELECT numéro, nom FROM abonnés;
In this example, the user creates the following database, table, and view with French-language character names in a French locale (such as fr_fr.8859-1):
All of the identifiers in this example conform to the rules for specifying identifiers within a French locale. For these names to be valid, the database locale must support a code set that includes these French characters in its alpha class.
For the syntax and usage of identifiers in SQL statements, see the Identifier segment in the IBM Informix: Guide to SQL Syntax.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]