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.
I would like to update a row in a table and if not found, insert the record.
The return value of update (sqlca.sqlcode) returns a 0 when the record is not
found. I thought it should return 100 just like a select statement.
Is this a bug? Now I have to do a select first.
I am using Informix On-line 5.0
Any advice appreciated.
--
Chaiw Kok Kee
Consultant
Multi-Purpose Information Technology
kkchaiw@mit.com.my
www.jaring.my/mphb/
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.