|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
CASE clause
Hi,
How many WHEN condition can you have in a CASE clause in DB2? Thankns |
|
#2
|
||||
|
||||
|
I cannot recall ever seeing where DB2 has stated a limit to the number of case statements that you can have in a single statement. Though if your entire statement is exceeding large you might want to consider using external means.
|
|
#3
|
|||
|
|||
|
I have a procedure with 2 CASE clauses. Every CASE clause has 80 WHEN condition. Every time when I try to create this procedure I am disconnected from the server. If I let only one CASE clause then it is ok.
Thnaks .................... Quote:
|
|
#4
|
||||
|
||||
|
You may be running over the tablespace size on your database, you may want to consider adjusting that, or reorganizing your data so that you don't need such an extreme amount of when conditions.
|
|
#6
|
|||
|
|||
|
What might you be doing with those 2 case statements with all the 'wheres' ? Can you post a small sample?
fv
__________________
...because that is the way we have always done it. We've been doing it like that for 80 Years! (How do we change that mindset?) |
![]() |
| Viewing: Dev Shed Forums > Databases > DB2 Development > CASE clause |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|