pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Ranieri Mazili <rmazili@wgsystems.com.br>
Cc: pgsql-general@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Using function like where clause
Date: Fri, 10 Aug 2007 10:00:47 +0200
Message-ID: <20070810080047.GB31829@depesz.com> (raw)
In-Reply-To: <46B77A1D.4050908@wgsystems.com.br>
References: <46B77A1D.4050908@wgsystems.com.br>

On Mon, Aug 06, 2007 at 04:44:29PM -0300, Ranieri Mazili wrote:
> 1) Can I use a function that will return a string in a where clause like 
> bellow?
> 2) Can I use a function that will return a string to return the list of 
> columns that I want to show like below?

not in sql. you can in pl/pgsql.

depesz

-- 
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA.  here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)



view thread (6+ messages)

Message-ID: <20070810080047.GB31829@depesz.com>
Permalink:  ../20070810080047.GB31829@depesz.com/
Also on:    postgresql.org/message-id/20070810080047.GB31829@depesz.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: depesz@depesz.com, rmazili@wgsystems.com.br, pgsql-general@postgresql.org
  Subject: Re: [SQL] Using function like where clause
  In-Reply-To: <20070810080047.GB31829@depesz.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox