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.
Neil Stevenson — — source: Informix-list mailing list archive (1991-1998)
create a shell script with the following
isql <database name> << ! > $0.out 2> $0.err
<sql statement>;
<sql statement>;
<sql statement>;
!
or
isql - << ! > $0.out 2> $0.err
database <database name>;
<sql statement>;
<sql statement>;
<sql statement>;
close database;
!
Remember that you will have to setup your environment before you run isql.
Note: You can use shell $variable substitution within the sql statements.
~~~~
HTH
---------------------------------------------
All opinions are my own
Neil Stevenson
nmsteven@eukcumb1po.unitedkingdom.attgis.com
Voice: +44 1236 851218
Fax: +44 1236 457459
---------------------------------------------
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.