Re: How do I get an OID from a record in table?

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: How do I get an OID from a record in table?
Дата
Msg-id c2d9e70e0511261612j56bbf205o676cf97dfd1ab25@mail.gmail.com
обсуждение исходный текст
Ответ на FW: How do I get an OID from a record in table?  ("Scott Simpson" <Scott.Simpson@computer.org>)
Ответы Re: How do I get an OID from a record in table?  (Norberto Meijome <sys@meijome.net>)
Список pgsql-novice
On 11/26/05, Scott Simpson <Scott.Simpson@computer.org> wrote:
> If I create a table with an OID field type, how do I set that field type?
> That is, I have to look up the OID value in another table somewhere to set
> my OID field and I don't know how to do that. (I'm trying to get one field
> to point to another record). ADVthanksANCE.
>

SELECT oid FROM your_referenced_table;

oid is an especial field that is present in all row unless you had
specified WITHOUT OIDS...

i think in 8.1 WITHOUT OIDS is the DEFAULT...

it's not a good idea to do what you want to do... use a serial instead

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

В списке pgsql-novice по дате отправления:

Предыдущее
От: john hedge
Дата:
Сообщение: Linux Format Gambas Easy Database Access!
Следующее
От: Marcus Engene
Дата:
Сообщение: Re: Linux Format Gambas Easy Database Access!