I am trying to output some files using NZSQL CLI but not able to output as tab delimited files. Can somebody who has worked on NZ share your thoughts on this below command.
Tried so far :-
nzsql -o sample.txt -F= -A -t -c "SELECT * FROM DW_ETL.USER WHERE datasliceid % 20 = 2 LIMIT 5;"
To specify tab as the delimiter use $ in conjunction with the -F option.
This is documented in the nzsql -h output.
If you have a lot of data, I'd recommend using external tables instead as they perform better.