A problem with 'update' query
Posted in 1994
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
Hi All, I have a problem regarding the UPDATE query I want to run in Informix-4GL. When I want to update a row in a particular table , and if this row does not exist, still the query returns SUCCESS as in STATUS=0. If the row is found, it is updates and returns SUCCESS. My problem is, how do I tell one state from another. If the update fails - because the row is not in the table - I want take some error recovery action. Hope someone out there can help. Thanks in advance. I would appreciate if you could get back via email: shishir@hpux4.miel.mot.com -Shishir Note: Please use the email address as indicated, and not from the header. The mail will never reach me! :-) --------------------------------------------------------------- Shishir Pathak, Motorola India Electronics Limited, Bangalore - 560 001 email: shishir@hpux4.miel.mot.com --------------------------------------------------------------- Standard disclaimer applies. ---------------------------------------------------------------