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.
Mike Fontenot — — source: Informix-list mailing list archive (1991-1998)
Chas wrote:
>performing these insertions? Preferably within a transaction which will be
>committed once all insertions have been successful, or rolled back
>otherwise. Preferably avoiding the ugly solution of executing 1,000
>separate insert statements via informix.api.Statement.exec().
>
Chas,
SQL syntax does not include the ability to perform multiple inserts
with a single statement. Each insert requires a well formed SQL
Insert statement.
You could create a JDBC PreparedStatement once, then execute this over
the 1000 iterations simply substituting the new values.
I think this is as good as it gets.
Mike Fontenot
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.