Suppressing Header records in Copy command

Moderator: NorbertKrupa

Post Reply
seanarcher7
Newbie
Newbie
Posts: 7
Joined: Thu Apr 04, 2013 8:43 pm

Suppressing Header records in Copy command

Post by seanarcher7 » Thu Apr 18, 2013 5:46 pm

All,

If I receive a file with header and trailer, how can I exclude them while loading using copy command. For ex: below is the file format

Code: Select all

C1|C2
1|A
2|B
Is it possible to exclude C1 and C2 from loading in to the table?

id10t
GURU
GURU
Posts: 732
Joined: Mon Apr 16, 2012 2:44 pm

Re: Suppressing Header records in Copy command

Post by id10t » Thu Apr 18, 2013 10:15 pm

HI!

Copy command has option "SKIP N" where N - numbers of rows to skip.
Vertica has no option to skip a footer.

Example:

Code: Select all

COPY <tbl name> FROM <data src> ... SKIP 1

Post Reply

Return to “Vertica Data Load”