<p>I'm using Oracle 10g and I'm trying to "stack" the conditions in a CASE statement, like I would do in C++ :</p>

<pre><code>case 1:
case 2:
    // instructions
    break;
</code></pre>

<p>i.e. having the same code block executed for two different successful conditions.</p>

<p>I've tried :</p>

<pre><code>WHEN 1, 2 THEN
WHEN 1 OR 2 THEN
</code></pre>

<p>... without luck.
Is it even possible ?</p>

<p><strong>EDIT</strong> - Full snippet</p>

<pre><code>CASE v_n
  WHEN (1 OR 2) THEN
    dbms_output.put_line('Case 1 or 2');
  WHEN 3 THEN
    dbms_output.put_line('Case 3'); 
END CASE;
</code></pre>

<p>Generates an <strong>expression is of wrong type</strong> error</p>

You need to use this format:
```
```
CASE
  WHEN v_n = 1 OR v_n = 2 THEN
    dbms_output.put_line('Case 1 or 2');
  WHEN v_n = 3 THEN
    dbms_output.put_line('Case 3'); 
END CASE;
```
```