Re: Dynamic sql

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Dynamic sql
Date: 2011-09-10 09:18:41
Message-ID: j4fa1h$38a$1@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 2011-09-10, Gabriel Filipiak <gabriel(dot)filipiak(at)gmail(dot)com> wrote:
> --bcaec517adbceea3c804ac90a376
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi, this is my first on this list.
>
> I want to know the basics of dynamic sql especially in PostgreSQL. I was
> googling for a while but have no luck for getting a good described examples.
> Maybe someone here could give me some links to the materials from which you
> where studying this subject.

Usually I go to the manual first.

http://www.postgresql.org/docs/9.0/interactive/plpgsql-statements.html#PLPGSQL-STATEMENTS-EXECUTING-DYN

some things to consider: use quote_identifier and quote_literal when
passing names and values into the sql statements: you can't pass
variables in, only their values.

--
⚂⚃ 100% natural

In response to

  • Dynamic sql at 2011-09-10 06:45:32 from Gabriel Filipiak

Browse pgsql-sql by date

  From Date Subject
Next Message Mandana Mokhtary 2011-09-10 21:22:32 FW: Hi
Previous Message Gabriel Filipiak 2011-09-10 06:45:32 Dynamic sql