Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2695

Re: export data using the output command from interactive sql

$
0
0

Using the output command as per your example, create a file sql.sql containing something like:

 

select 1

go

output to 'c:\temp\output.txt' FORMAT ASCII

DELIMITED BY ',' QUOTE '''' ALL ENCODING cp1253

 

Then run:

 

# ./dbisql -host <host> -port <port> -c "UID=<user>;PWD=<pwd>" -c "UID=<uid>;PWD=<pwd>" -nogui sql.sql;cat /cygdrive/c/temp/output.txt

'1'


Viewing all articles
Browse latest Browse all 2695

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>