Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
223 views

SQL Codes

The SQLCODE value indicates the result of executing an SQL statement in the database, with 0 meaning success, 100 meaning no data found, values greater than 0 but not equal to 100 representing success with a warning, 0 with a warning flag also representing success with a warning, and negative values representing an unsuccessful execution.

Uploaded by

VISHNU400
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
223 views

SQL Codes

The SQLCODE value indicates the result of executing an SQL statement in the database, with 0 meaning success, 100 meaning no data found, values greater than 0 but not equal to 100 representing success with a warning, 0 with a warning flag also representing success with a warning, and negative values representing an unsuccessful execution.

Uploaded by

VISHNU400
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

The SQLCODE is also set by the database manager after each SQL statement is exec uted as follows: If SQLCODE

= 0 and SQLWARN0 is blank, execution was successful. If SQLCODE = 100, no data was found. For example, a FETCH statement returned no data, because the cursor was positioned after the last row of the result table. If SQLCODE > 0 and not = 100, execution was successful with a warning. If SQLCODE = 0 and SQLWARN0 = 'W', execution was successful with a warning. If SQLCODE < 0, execution was not successful.

You might also like