Обсуждение: Comment 1959 added to page ddl-inherit.html of version 7.4

Поиск
Список
Период
Сортировка

Comment 1959 added to page ddl-inherit.html of version 7.4

От
nobody
Дата:
Author: sardaukar_siet <sardaukar.siet@gmail.com>
----
This example for inheritance is not very good, in my humble opinion - it would be easier to add a boolean toggle in the
citiestable to indicate if it is or not a capital. A much better example, in my opinion, is this : 


 CREATE TABLE baseinfo (
    name            text,
    address         text,
    zipcode         text
);

CREATE TABLE regularclient (
    client_id       char(25)
) INHERITS (baseinfo);

CREATE TABLE supplierclient (
    supplier_id     char(25)
) INHERITS (baseinfo);
----
Manual page: http://wwwmaster.postgresql.org/docs/7.4/static/ddl-inherit.html
Reject:      http://wwwmaster.postgresql.org/admin/comments.php?action=reject&id=1959
Edit:        http://wwwmaster.postgresql.org/admin/comment-edit.php?id=1959
Delete:      http://wwwmaster.postgresql.org/admin/comments.php?action=delete&id=1959