Received: from mail.enterprise.net (root@mail.enterprise.net [194.72.192.20]) by hub.org (8.8.8/8.7.5) with ESMTP id PAA12038 for ; Fri, 29 May 1998 15:58:46 -0400 (EDT) Received: from linda.lfix.co.uk (root@ppp136.enterprise.net [194.72.195.136]) by mail.enterprise.net (8.8.5/8.8.5) with ESMTP id UAA03912; Fri, 29 May 1998 20:58:43 +0100 (BST) Received: from linda.lfix.co.uk (olly@localhost [127.0.0.1]) by linda.lfix.co.uk (8.8.8/8.8.8/Debian/GNU) with ESMTP id UAA05205; Fri, 29 May 1998 20:58:13 +0100 Message-Id: <199805291958.UAA05205@linda.lfix.co.uk> X-Mailer: exmh version 2.0.2 2/24/98 (debian) X-URL: http://www.lfix.co.uk/oliver X-face: "xUFVDj+ZJtL_IbURmI}!~xAyPC"Mrk=MkAm&tPQnNq(FWxv49R}\>0oI8VM?O2VY+N7@F- KMLl*!h}B)u@TW|B}6 cc: pgsql-sql@postgreSQL.org Subject: Re: [SQL] inheritance In-reply-to: Message from Bernhard Matthias Ertl of Fri, 29 May 1998 20:09:15 +0200. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 29 May 1998 20:58:13 +0200 From: "Oliver Elphick" 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