pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mario Bittencourt <mneto@argo.com.br>
To: pgsql-sql@postgresql.org
Subject: Tutorial : using foreign keys, retrictions etc
Date: Sat, 2 Jun 2001 18:49:55 -0400
Message-ID: <9fbq01$19jl$1@news.tht.net> (raw)

Hi,

        I've decided to switch from mysql to postgresql as my database server. I 
do mostly web programming (who doesnt these days?) with more than a 100 
sites developed (using mysql).

        I've read about postgresql and it's features (such as triggers, stored 
procedures, views) and I'd like to know if there is some tutorial/snippet 
of code regarding such features specially  the use of foreign keys and 
referetial integrity.

        To give a more concrete example the next app I'd like to use postgresql 
needs this behaviour :

table A
id,  name

table B
id, foo

table C
id, date

        If I change id in table A update table B to change it too (I think it's 
called cascade).

        Thanks.

- RM
        



view thread (3+ messages)  latest in thread

Message-ID: <9fbq01$19jl$1@news.tht.net>
Permalink:  ../9fbq01$19jl$1@news.tht.net/
Also on:    postgresql.org/message-id/9fbq01$19jl$1@news.tht.net

 · 

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: mneto@argo.com.br
  Subject: Re: Tutorial : using foreign keys, retrictions etc
  In-Reply-To: <9fbq01$19jl$1@news.tht.net>

* 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