Data Movement Utilities Guide and Reference


Using Load with Generated Columns

The load utility can be used to load data into a table containing (non-identity) generated columns. It does not, however, currently support the generation of non-identity column values within the utility, so loading into a table with such columns will always leave the table in check pending state. To take the table out of check pending state and force the generation of values, issue:

   SET INTEGRITY FOR tablename IMMEDIATE CHECKED FORCE GENERATED;

To accept whatever values were loaded, issue:

   SET INTEGRITY FOR tablename GENERATED COLUMN IMMEDIATE UNCHECKED;

If no generated column-related file type modifiers are used, the load utility works according to the following rules:

Three (mutually exclusive) file type modifiers are supported by the load utility to simplify its use with tables that contain generated columns:


[ Top of Page | Previous Page | Next Page ]