LOAD TABLE HEADER SKIP syntax [CR #593620]

As of Sybase IQ 15.2 ESD #2, you can use the HEADER SKIP clause to specify a number of lines at the beginning of the data file, including header rows, for LOAD TABLE to skip. All LOAD TABLE column specifications and other load options are ignored.

Syntax

LOADINTO ] TABLEowner.]table-name
... ( load-specification [, …] )
...  { FROM | USING [ CLIENT ] FILE }  
{ 'filename-string' | filename-variable } [, …]
.
.
.
... [ HEADER SKIP numberHEADER DELIMITED BYstring’ ] ]

Parameters

number: the number of lines to skip; greater than or equal to zero

string: the line delimiter, 1 to 4 characters in length; default is ‘\n’

Examples

Example 1 Ignore one header row at the beginning of the data file, where the header row is delimited by ‘&&’.

LOAD TABLE
...HEADER SKIP 1 HEADER DELIMITED by '&&'

Example 2 Ignore 2 header rows at the beginning of the data file, where each header row is delimited by ‘\n’.

LOAD TABLE
...HEADER SKIP 2

Usage

You can use the HEADER SKIP clause to specify a number of lines at the beginning of the data file, including header rows, for LOAD TABLE to skip.