From: | "Felipe Schnack" <felipes(at)ritterdosreis(dot)br> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | inheritance |
Date: | 2003-02-13 12:04:02 |
Message-ID: | 20030213110402.M33893@ritterdosreis.br |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)ritterdosreis(dot)br
Cel.: (51)91287530
Linux Counter #281893
Faculdade Ritter dos Reis
www.ritterdosreis.br
felipes(at)ritterdosreis(dot)br
Fone/Fax.: (51)32303328
From | Date | Subject | |
---|---|---|---|
Next Message | Jason Tishler | 2003-02-13 12:18:22 | Re: configure: error: no acceptable C compiler found in $PATH |
Previous Message | Deepa | 2003-02-13 05:36:47 | Hi, |