Loading data from table to file
i need to load data from a table to csv but with in a single command i need to acheive this . so please suggest me an way to do this using vsql command. Thanks
0
Comments
> vsql -U username -F $'\t' -At -o dumpfile.txt -c "SELECT * FROM my_table;" i want to enter the password also in the same command.
My scenario this command fires on vertica db through a jdbc driver. for that i am writing a shell script to open vsql and fire this query and come out of vsql