Re: execute if statement - Mailing list pgsql-general

From Jasen Betts
Subject Re: execute if statement
Date
Msg-id k9hpqn$hei$1@reversiblemaps.ath.cx
Whole thread Raw
In response to execute if statement  (Peter Kroon <plakroon@gmail.com>)
List pgsql-general
On 2012-12-01, Peter Kroon <plakroon@gmail.com> wrote:
> --f46d043be1f4bd2dec04cfcfbd6a
> Content-Type: text/plain; charset=ISO-8859-1
>
> Mmmmm.......
>
> How do I execute dynamic sql that starts with an if statement.

"if" is not SQL.

> I'm converting mssql code to pgsql.

probably best to rewrite at a higher level.

--
⚂⚃ 100% natural

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Bug in postgres 9.2 installation: pg_archivecleanup: command not found
Next
From: John R Pierce
Date:
Subject: Re: execute if statement