Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread CASE
Mon, Jun 1 2009 2:59 AMPermanent Link

Dieter Nagy
Hello,
in a PROC I tried this:

EXECUTE IMMEDIATE 'UPDATE KALENDER set
                    isWeekday =
                    Case
                    When extract(DAYOFWEEK FROM dt) =1
                    then 0
                    else 1
                    end case';

I got the error : Expected end of expression but instead found case.

What do I wrong?

TIA
Dieter Nagy
Mon, Jun 1 2009 4:31 AMPermanent Link

Dieter Nagy
Hello,

I found the error.

Sorry about that

Dieter Nagy












Dieter Nagy wrote:

Hello,
in a PROC I tried this:

EXECUTE IMMEDIATE 'UPDATE KALENDER set
                    isWeekday =
                    Case
                    When extract(DAYOFWEEK FROM dt) =1
                    then 0
                    else 1
                    end case';

I got the error : Expected end of expression but instead found case.

What do I wrong?

TIA
Dieter Nagy
Image