How to resolve the -305 error code in DB2?
And also please let me know, how to resolve the db2 error
codes.
Answer Posted / logaa
if the table column is defined as NOT NULL (with no
default) and if we try to insert a null value we get that
we get a different SQLCODE -407
| Is This Answer Correct ? | 10 Yes | 6 No |
Post New Answer View All Answers
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.
Highlight all the advantages that are attached to a package.
Are views updateable?
How would the varchar column remarks defined?
What is the physical storage length of the data types date, time, and timestamp?
What is difference between isnull and coalesce?
Explain the benefits you can get from mainframe connect?
What are foreign keys in db2?
Why do chiropractors use drop table?
What is lock escalation in db2?
If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?
What is ibm db2 used for?
What happens in bind step in a db2 program?
What is multi row fetch in db2?
what are bind concepts in db2 cobol?