| From: | Mario Bittencourt <mneto(at)argo(dot)com(dot)br> |
|---|---|
| To: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Tutorial : using foreign keys, retrictions etc |
| Date: | 2001-06-02 22:49:55 |
| Message-ID: | 9fbq01$19jl$1@news.tht.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Josh Berkus | 2001-06-04 17:31:52 | SQL Date Challenge |
| Previous Message | Alex Pilosov | 2001-06-02 18:14:38 | Re: trying to summarize into a new table by time... |