If there is no row in Emp table with Ename as Raghava and
you run the below queries in SPUFI.
1.select Ename from EMP wher Ename = 'raghava'
2.Select count(*) from EMP where Ename = 'raghava'
What is SQLCODE shown up in SPUFI
Answer Posted / ekalavya
In Both the cases it's ZERO.
| Is This Answer Correct ? | 1 Yes | 15 No |
Post New Answer View All Answers
What is the physical storage length of timestamp data type?
Suppose pgm A calling Pgm B .Pgm B has some Db2 program. at the time of compilation should plan and package will be created for both A and B or only B? What is the concept?
what is utility for parm lib
What is explain in db2?
What is db2 optimizer?
What is the difference between oracle and db2?
How to view db2 table structure?
What is meant by union and union all?
What is the max length of sqlca?
SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.
What is the purpose of using commit?
How to access db2 tables in mainframe?
Which command is used to remove all rows from a table?
What does db2 plan contain?
Can there be more than one cursor open for any program?