Re: how to use variable for select query in pl/pgsql

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: aBBISh <abbish(at)163(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how to use variable for select query in pl/pgsql
Date: 2006-08-16 05:07:31
Message-ID: 20060816050731.GA47837@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Aug 16, 2006 at 12:43:07PM +0800, aBBISh wrote:
> i want use a variable to denote a table name in select query.

See "Executing Dynamic Commands" in the PL/pgSQL documentation:

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

--
Michael Fuhr

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jasbinder Bali 2006-08-16 05:20:08 Re: DB insert Error
Previous Message Michael Fuhr 2006-08-16 05:05:29 Re: DB insert Error