Skip site navigation (1) Skip section navigation (2)

Re: Formulating an sql query with CTID

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Tzahi Fadida <Tzahi(dot)ML(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Formulating an sql query with CTID
Date: 2006-07-29 18:31:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Sat, Jul 29, 2006 at 01:37:44PM +0300, Tzahi Fadida wrote:
> 10x, 
> Found my answer thanks to Ragnar.
> SELECT DISTINCT ON (a0,a1) a0,a1,ctid FROM t1 
> To tell the truth, i did not know there was an ON option in SQL.
> This thing is very handy.

There isn't, it's a postgresql extension, albeit a very very useful

Have a nice day,
Martijn van Oosterhout   <kleptog(at)svana(dot)org>
> From each according to his ability. To each according to his ability to litigate.

In response to

pgsql-hackers by date

Next:From: Peter EisentrautDate: 2006-07-29 19:07:03
Subject: Re: Do we need multiple forms of the SQL2003 statistics
Previous:From: Peter EisentrautDate: 2006-07-29 17:56:15
Subject: Re: DTrace enabled build fails

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group