Specifying Conditions in the WHERE Clause The following SQL statements might include a WHERE clause to tell the database server on which rows to operate:
Specifying Era-Based Dates The following SQL statements might specify DATE and DATETIME column values:
Loading and Unloading Data The LOAD and UNLOAD statements allow you transfer data to and from your database with operating-system text files. The following sections describe the GLS aspects of the LOAD and UNLOAD statements. For a complete description of the use and syntax of these statements, see Chapter 1 of the Informix Guide to SQL: Syntax.
Loading Data into a Database The LOAD statement inserts data from an operating-system text file into a table or view. This operating-system text file is called a LOAD FROM file. The data in this file can contain any character that the client code set defines. If the client locale supports a multibyte code set, this data can contain multibyte characters. If the database locale supports a code set that is different from but convertible to the client code set, the client performs code-set conversion on the data before it sends this data to the database server. For more information, see "Performing Code-Set Conversion".
The locale also defines the formats for date, time, numeric, and monetary data. You can use any format that the client locale supports as a column value in the LOAD FROM file. For example, a French locale might define monetary values that have a space as the thousands separator and a comma as the decimal separator. When you use this locale, the following MONEY column value is valid in a LOAD FROM file:
Unloading Data from a Database The UNLOAD statement writes the rows that a SELECT statement retrieves to an operating-system text file. This operating-system text file is called an UNLOAD TO file. The data in this file contains characters that the client code set defines. If the client locale supports a multibyte code set, this data can contain the multibyte characters. If the database locale supports a code set that is different from but convertible to the client code set, the client performs code-set conversion on the data before it writes this data to the UNLOAD TO file. (For more information, see "Performing Code-Set Conversion".)
The client locale and certain environment variables determine the output format of certain data types in the UNLOAD TO file. These data types include DATE values, MONEY values, values of numeric data types, and DATETIME values. For further information, see "End-User Formats" and "How Do You Customize Client End-User Formats?".