inheritance - Mailing list pgsql-general

From Felipe Schnack
Subject inheritance
Date
Msg-id 20030213110402.M33893@ritterdosreis.br
Whole thread Raw
Responses Re: inheritance  (Oliver Elphick <olly@lfix.co.uk>)
List pgsql-general
  Hi all...
  I'm starting to play with pgsql inheritance features and I just wondered a
specific situation where I wouldn't have any idea of how to use it. Let's say
I create these tables:
  create table persons (id serial primary key);
  create table students (number int) inherits persons;
  create table emplyees (anothernumber int) inherits persons;
  Let say I can have a person that is a student and is a employee of the
company... how I would insert its data in my database??

Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
felipes@ritterdosreis.br
Fone/Fax.: (51)32303328


pgsql-general by date:

Previous
From: "softrech"
Date:
Subject: Performance a lot
Next
From: Ananda K Venkataraman
Date:
Subject: Linux on PowerPc