pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Elphick <olly@lfix.co.uk>
To: Bernhard Matthias Ertl <ertl@delos.dbs.informatik.uni-muenchen.de>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] inheritance
Date: Fri, 29 May 1998 20:58:13 +0200
Message-ID: <199805291958.UAA05205@linda.lfix.co.uk> (raw)
In-Reply-To: <ertl@delos.dbs.informatik.uni-muenchen.de> <Pine.HPP.3.95q.980529200313.23372B-100000@delos.dbs.informatik.uni-muenchen.de>

Bernhard Matthias Ertl wrote:
  >Hi, 
  >
  >only two short questions: 
  >+ does the postgresql 6.2.1 already support inheritance and
  >+ if I have the tables cities and capitals (like in the tutorial), how can
  >I add attributes of a city to a capital? Before the capital attributes,
  >after the capital attributes or do I have to insert a capital citiy into
  >the table city as well as into the table capital?
A descendant automatically inherits all attributes from its ancestor(s).

Try \d and see.

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
               PGP key from public servers; key ID 32B8FAA1
                 ========================================
     "Let no man despise thy youth; but be thou an example 
      of the believers, in word, in conversation, in
      charity, in spirit, in faith, in purity."      
                                       I Timothy 4:12





view thread (18+ messages)  latest in thread

Message-ID: <199805291958.UAA05205@linda.lfix.co.uk>
Permalink:  ../199805291958.UAA05205@linda.lfix.co.uk/
Also on:    postgresql.org/message-id/199805291958.UAA05205@linda.lfix.co.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: olly@lfix.co.uk, ertl@delos.dbs.informatik.uni-muenchen.de
  Subject: Re: [SQL] inheritance
  In-Reply-To: <199805291958.UAA05205@linda.lfix.co.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox