Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CASE clause

Status
Not open for further replies.

oana12

Programmer
Jan 6, 2005
21
0
0
CA
Hi,
How many WHEN condition can you have in a CASE clause in DB2?

Thankns

 
Beats me. Doesn't say in the documentation I have. How many When conditions do you want to use?
 
I have a cursor with 2 CASE clause . Every CASE clause has 80 WHEN codndition and every time a ran this procedure I am disconnected from the server. If I let only one CLAUSE it is ok but with both no.
Any help?

Thanks
 
I just ran 2 Case statements with over 100 WHEN clauses in each and the query ran fine. What platform are you using?
 
I resolved the problem, thank you. I had to modify a configuration parameter.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top