On Thursday 19. March 2009, Rob Richardson wrote:
>I tried using an if statement combined with the EXISTS() function:
>
>if exists(select 1 from this_sequence_does_not_exist) then
> drop sequence this_sequence_does_not_exist;
>end if;
I don't know if it applies to your particular problem, but the standard
SQL if-then-else construct is:
CASE WHEN foo THEN bar ELSE baz;
HTH,
--
Leif Biberg Kristensen | Registered Linux User #338009
Me And My Database: http://solumslekt.org/blog/