Re: Type Inheritance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Type Inheritance
Дата
Msg-id 10119.1101492847@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Type Inheritance  ("Andrew Thorley" <andrew.thorley@linuxmail.org>)
Список pgsql-sql
"Andrew Thorley" <andrew.thorley@linuxmail.org> writes:
> Does anyone know how to implement type inheritance in postgresql? in oracle you just use the word UNDER in ur code
i.e:
> CREATE TYPE test2_UDT UNDER test1_UDT AS (abc INT);

If you had said what this *does*, we might be better able to help.

But take a look at CREATE DOMAIN, as well as the INHERITS and LIKE
options in CREATE TABLE.  Some part of that might be close to what
you are looking for.
        regards, tom lane


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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Querying a list field against another list
Следующее
От: Jonathan Knopp
Дата:
Сообщение: Way to stop recursion?