Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B00D9475ADE for ; Tue, 7 Jan 2003 07:11:15 -0500 (EST) Received: from mercurio.fates.tche.br (unknown [200.132.250.35]) by postgresql.org (Postfix) with ESMTP id 1D38D475F25 for ; Tue, 7 Jan 2003 07:11:08 -0500 (EST) Received: from fates.tche.br (saturno.fates.tche.br [200.132.250.48]) by mercurio.fates.tche.br (8.12.3/8.12.3) with SMTP id h07CB4S4021238; Tue, 7 Jan 2003 10:11:04 -0200 Date: Tue, 7 Jan 2003 10:09:20 -0200 From: Nasair Junior da Silva To: Adam Witney Cc: pgsql-sql@postgresql.org Subject: Re: Inherancing Message-Id: <20030107100920.7fdcde1d.njunior@univates.br> In-Reply-To: References: <20030107094225.0345a050.njunior@univates.br> Reply-To: njunior@univates.br Organization: Univates - Centro =?ISO-8859-1?Q?Universit=E1rio?= X-Mailer: Sylpheed version 0.8.8 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MailScanner: Found to be clean X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/54 X-Sequence-Number: 10919 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 escreveu: >On 7/1/03 11:42 am, "Nasair Junior da Silva" 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