Re: [SQL] System Attribute

Поиск
Список
Период
Сортировка
От Mathijs Brands
Тема Re: [SQL] System Attribute
Дата
Msg-id 19991214013351.A11540@ilse.nl
обсуждение исходный текст
Ответ на System Attribute  (Drew Whittle <drew@albatross.co.nz>)
Список pgsql-sql
On Tue, Dec 14, 1999 at 01:14:14PM +1300, Drew Whittle allegedly wrote:
> We have an online order system that I am trying to convert to use postgres 
> and I noticed a problem with the creation of the DB.
> 
> One of the tables has a field called 'oid', which is fine under lots of 
> other DB's but postgres doesn't like it. I am in the process of renaming 
> this field so things will work but I am curious what the error actually means:
> 
> ERROR:  create: system attribute named "oid"
> 
> Thanks,
> 
> Drew

Every record in a table has a unique OID value. So if you were to insert the
same value twice, you would be able to keep them apart using the OID value.
Since PostgreSQL uses the oid field internally, you cannot use it.

I hope this helps.

Mathijs


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

Предыдущее
От: Drew Whittle
Дата:
Сообщение: System Attribute
Следующее
От: neko@kredit.sth.szif.hu
Дата:
Сообщение: Re: [SQL] How do I get column names?