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.
Carl Y. Wu — — source: Informix-list mailing list archive (1991-1998)
When using dbaccess to run a batch SQL script, how to instruct dbaccess to
stop when a sql statement fails?
For example, if mysqlscript.sql contains the following statement:
BEGIN WORK;
DELETE FROM mytable1 WHERE ......;
INSERT INTO mytable2 VALUES (......);COMMIT WORK;
If the delete fails the insert will still be executed and the transaction
will be committed. Is there any way to let dbaccess stop when any of the
statement fails?
Regards,
Carl Y. Wu
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.