Re: Inherancing - Mailing list pgsql-sql

From Nasair Junior da Silva
Subject Re: Inherancing
Date
Msg-id 20030107100920.7fdcde1d.njunior@univates.br
Whole thread Raw
In response to Re: Inherancing  (Adam Witney <awitney@sghms.ac.uk>)
Responses Re: Inherancing  (Adam Witney <awitney@sghms.ac.uk>)
List pgsql-sql
In this case, when i do
select * from cities;
i'll have two tuples with the name 'Lajeado'.

Does it the only way i have ?

Thanks again,

Nasair Júnior da Silva
Lajeado - RS - Brasil.

Em Tue, 07 Jan 2003 12:02:13 +0000, Adam Witney <awitney@sghms.ac.uk> escreveu:
>On 7/1/03 11:42 am, "Nasair Junior da Silva" <njunior@univates.br> wrote:
>
>> Hi people,
>> supposing i have the tables :
>> 
>> create table cities (id int, name varchar, primary key(id) );
>> create table centers (state varchar(2)) inherits (cities);
>> 
>> ant the tuple
>> insert into cities values (1, 'Lajeado');
>> 
>> How i do if i want to make this city as a center ?
>
>If I understand you correctly you probably want to do this instead...
>
>insert into centers values (1, 'Lajeado', 'AZ');
>
>Where AZ is your state
>
>HTH
>
>adam
>
>


xx===============================xx
||  °v°   Nasair Junior da Silva ||
|| /(_)\  Linux User: 246054     ||
||  ^ ^   njunior@univates.br    ||
||CPD - Desenvolvimento          ||
||Univates - Centro Universitário||
xx===============================xx


pgsql-sql by date:

Previous
From: Adam Witney
Date:
Subject: Re: Inherancing
Next
From: Achilleus Mantzios
Date:
Subject: Re: 7.3.1 index use / performance