Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 1 to 2 of 2 total |
CASE |
Mon, Jun 1 2009 2:59 AM | Permanent 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 AM | Permanent 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 |
This web page was last updated on Tuesday, April 30, 2024 at 03:55 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |