From: Andrew Snow <andrew@modulus.org>
To: 'John Hughes' <johughes@shaw.ca>
Cc: pgsql-general@postgresql.org
Subject: Re: How would i do this?
Date: Wed, 12 Dec 2001 07:09:09 +1100
Message-ID: <001b01c1827f$c03ac8e0$0b00000a@avon> (raw)
In-Reply-To: <9v5m86$26uo$1@news.tht.net>
You'll probably end up forgetting what you know about arrays: I
recommend a read through this to get a quick understanding of how things
are done in the RDBMS world:
http://www.google.com/search?q=cache:-Y8EjJKZgKk:w3.one.net/~jhoffman/sq
ltut.html&hl=en#Joins
(original site seems to have vanished)
Once you have a handle on that, read the PostgreSQL docs for
primary/foreign keys and referential integrity.
Hope that helps
- Andrew
> -----Original Message-----
> From: pgsql-general-owner@postgresql.org
> [mailto:pgsql-general-owner@postgresql.org] On Behalf Of John Hughes
> Sent: Wednesday, 12 December 2001 6:22 AM
> To: pgsql-general@postgresql.org.pgsql-sql@postgresql.org
> Subject: [GENERAL] How would i do this?
>
>
> I am new to DB programming, so im not too sure about how to
> implement my DB.
>
> Coming from a programming background, I could do this in c++
> very easily. I
> actually started inmplementing it in a similar fasion: each
> student class
> teacher ect would have a uniqe id in the database, and, for
> example, a
> class would include an array of integer student id's.
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: andrew@modulus.org, johughes@shaw.ca, pgsql-general@postgresql.org
Subject: Re: How would i do this?
In-Reply-To: <001b01c1827f$c03ac8e0$0b00000a@avon>
* 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