From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | soundar rajan <psrajan(at)yahoo(dot)com>, pgsql-general(at)postgreSQL(dot)org |
Subject: | Re: [GENERAL] select max(oid) |
Date: | 1999-10-26 04:11:14 |
Message-ID: | 199910260411.AAA17940@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> On Oct 22, soundar rajan mentioned:
>
> > How do I
> >
> > select max(oid) from table;
> >
> > I'm able to to
> > select max(fieldname) from tablename;
> > but not max(oid).
>
> There is no max function for the type oid. (Interestingly, casting it to
> an int doesn't work either.) You could try to write your own (see help for
> create aggregate). There appear to be < and > operators for the type, so
> it shouldn't be too complicated.
>
Added to TODO:
* Add max() for oid type
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1999-10-26 04:19:16 | Re: [GENERAL] How to make a research |
Previous Message | Courtney Thomas | 1999-10-26 02:19:30 | Re: [GENERAL] initdb error->ld-elf.so.1: Shared object "libpq.so.2" not found^H |