On 3 Aug 2002, Hannu Krosing wrote: > hannu=# create table animal (name text, legcount int); > CREATE > hannu=# insert into animal values('pig',4); > INSERT 34183 1 > hannu=# select * from animal; > name | legcount > ------+---------- > pig | 4 > (1 row) > > hannu=# create table bird (wingcount int) inherits (animal); > CREATE > hannu=# insert into bird values('hen',2,2); > INSERT 34189 1 > hannu=# select * from animal; > name | legcount > ------+---------- > pig | 4 > hen | 2 > (2 rows)
You can do this just as well with views. In posgres, it's harder only because you're forced to create rules for updating views. But it's possible to have the system automatically do the right thing. cjs -- Curt Sampson <[EMAIL PROTECTED]> +81 90 7737 2974 http://www.netbsd.org Don't you know, in this new Dark Age, we're all light. --XTC ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]