You can use this Loader command when creating a database session to specify the SQL Mode of the database instance.
<sql_mode_command> ::= SQLMODE <sql_mode>
<sql_mode> ::= INTERNAL | ANSI | DB2 | ORACLE
INTERNAL |
Internal SQL mode (system default) in the database system |
ANSI |
SQL dialect in accordance with the ANSI standard (ANSI X3.135-1992, Entry SQL) |
DB2 |
SQL dialect in accordance with the definition for DB2 Version 4 |
ORACLE |
SQL dialect in accordance with the ORACLE7 definition |
The commands for loading and unloading data executed by the Loader and the SQL statements are interpreted in accordance with the SQL mode that has been set if the data stream does not have the PAGES format.
The SQL mode is transferred between the Loader and the database instance when the connection is set up. The defined SQL mode remains active until it is changed again using this command.
· If you do not specify an SQL mode, the SQL mode INTERNAL is used.
· If you enter an invalid SQL mode, the INTERNAL SQL mode is assumed implicitly.
· You can change the SQL mode within a command file or a script using the SQLMODE command.