Question: You are writing a program that retrieves data from a remote database using an SQL query. However the query returns no data. How would you
You are writing a program that retrieves data from a remote database using an SQL query. However the query returns no data. How would you detect this condition, and what value would the SQLCODE variable have in this case?
Question options:
Check the value of the SQLSTATE variable, which should be in case of success. The SQLCODE variable would have a value of in this case.
Check the value of the SQLSTATE variable, which should be in case of success. The SQLCODE variable would have a value of in this case.
Check the value of the SQLCODE variable, which should have a value of in case the query returns no data.
None of the above.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
