Re: How to identify the class of a record

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Andre Fortin <andrefor(at)axionet(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to identify the class of a record
Date: 2001-01-03 16:02:55
Message-ID: Pine.LNX.4.30.0101031701500.1310-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andre Fortin writes:

> SELECT * from Equipment*;
>
> Is there a way to know from which table each row in the returned record
> set belongs to, as you can do with OO languages.

In 7.1 there will be an implicit column TABLEOID. In 7.0 and earlier
there's no good way short of maintaining such a column manually.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tim Uckun 2001-01-03 16:44:40 Re: Re: RE: Re: MySQL and PostgreSQL speed compare
Previous Message Herve Piedvache 2001-01-03 15:14:46 Pb importing data in v. 7.0.3