Can you search give an array in the WHERE clause of a db2
query?
Answer Posted / ram prajapati
arrays are not supported by sql so trying to add an array in
a where clause of sql may throw some errors...
only dot operators are possibly used...
plz correct me if i'm wrong
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is a db2 tablespace?
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.
Explain how can you do the explain of a dynamic sql statement?
What is dbrm? When it will be created?
What is the physical storage length of date data type?
What is the use of db2 optimizer?
What is the use of runstats in db2?
How can we read records for specific member in CL? AND rpg?
What is rct?
What are the prerogatives?
What is the use of dclgen in db2?
Mention the different locking levels that are available in db2.
What are the uses of db2 optimizer?
ther r 2 tables OTTABLE & SALTABLE, add the otamt from OTTABLE to empsal of SALTABLE if eid is matched else add the unmatched from OTTABLE to SALTABLE
Mention the length of physical storage of the given data types of db2 – date, timestamp, time