We're Moving!

The Vertica Forum is moving to a new OpenText Analytics Database (Vertica) Community.

Join us there to post discussion topics, learn about

product releases, share tips, access the blog, and much more.

Create My New Community Account Now


Omit Footer WhileLoading the Data using copy — Vertica Forum

Omit Footer WhileLoading the Data using copy

HI,

 

Iwant to omit the footer from my files while loading the data using Copy command

 

 

is there any way to omit

 

 

Can any one  help in the issue.

 

 

 

Thanks

 

San2

Comments

  • Hi
    In linux environment , you would like to do something like this :


    head -n -1 yourfile| vsql -c 'copy table (...) FROM STDIN'


    I hope you will find it helpful


    Thanks

     

  • Why dont you just remove all last lines from all the files you are about to load ! 

     

    Use this snipet:

    sed -i '$ d' *.csv

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file