Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Hi.
The easy way is to add constants to your select list. Something like
this:
>#
>dbaccess databasename << EOF > /tmp/outputfile
>
>select field1,"|",field2,"|" from table where field1 like "foobar%">
>EOF
You can also use the unload that make this automaticaly. Somethink like
this:
>#
>dbaccess databasename << EOF
>
>unload to /tmp/outputfile select field1, field2, from table where field1 like "foobar%">
>EOF
Bye
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.