The Vertica Forum recently got a makeover! Let us know what you think by filling out this short, anonymous survey.
Please take this survey to help us learn more about how you use third party tools. Your input is greatly appreciated!

Export table to sql file

andriiandrii Vertica Customer

Hi,
I need to export a table with all data in an SQL file. The goal is to execute this file locally in Vertica under Docker. Is there any command to do it in a simple way?

Tagged:

Answers

  • moshegmosheg Vertica Employee Administrator

    Does the following answer your question?

    cat export_data_from_my_table.sql
    \a
    \t
    \f ','
    \o my_table.data
    select * from my_table;
    

Leave a Comment

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