pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam Witney <awitney@sghms.ac.uk>
To: njunior@univates.br, pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Inherancing
Date: Tue, 07 Jan 2003 12:02:13 +0000
Message-ID: <BA407245.EB7C%a.witney@sghms.ac.uk> (raw)
In-Reply-To: <20030107094225.0345a050.njunior@univates.br>

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


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




view thread (5+ messages)  latest in thread

Message-ID: <BA407245.EB7C%a.witney@sghms.ac.uk>
Permalink:  ../BA407245.EB7C%25a.witney@sghms.ac.uk/
Also on:    postgresql.org/message-id/BA407245.EB7C%a.witney@sghms.ac.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: awitney@sghms.ac.uk
  Subject: Re: Inherancing
  In-Reply-To: <BA407245.EB7C%a.witney@sghms.ac.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox