The SYSCS_UTIL.SYSCS_IMPORT_TABLE_BULK system procedure supports all functionalities of SYSCS_UTIL.SYSCS_IMPORT_TABLE with the additional feature to skip column headers in the input file.
Derby issues a COMMIT or a ROLLBACK statement after each import and export procedure is run (a COMMIT if the procedure completes successfully, a ROLLBACK if it fails). For this reason, you should issue either a COMMIT or ROLLBACK statement to complete all transactions and release all table-level locks before you invoke an import or export procedure.
For more information on using this procedure, see the section "Importing and exporting data" in the Derby Server and Administration Guide.
SYSCS_UTIL.SYSCS_IMPORT_TABLE_BULK (IN SCHEMANAME VARCHAR(128), IN TABLENAME VARCHAR(128), IN FILENAME VARCHAR(32672), IN COLUMNDELIMITER CHAR(1), IN CHARACTERDELIMITER CHAR(1), IN CODESET VARCHAR(128), IN REPLACE SMALLINT IN SKIP SMALLINT)
No result is returned from the procedure.
If authentication and SQL authorization are both enabled, only the database owner has execute privileges on this procedure by default. See "Configuring user authentication" and "Configuring user authorization" in the Derby Security Guide for more information. The database owner can grant access to other users. The user must also have INSERT privileges on the table.
Pet Name,Kind of Animal,Age Rover,Dog,4 Spot,cat,2 Squawky,Parrot,37
CALL SYSCS_UTIL.SYSCS_IMPORT_TABLE_BULK (null, 'PET', 'c:/output/petlist.del', null, null, null, 0, 1);When data is imported from the input file, first line in the input file is ignored. That is the number of lines given in the SKIP argument. Rest of the lines in the input file is imported. This means that first line
Pet Name,Kind of Animal,Ageis ignored and other three lines,
Rover,Dog,4 Spot,cat,2 Squawky,Parrot,37are imported.