By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,098 Members | 1,906 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,098 IT Pros & Developers. It's quick & easy.

Trying to understand primary keys, relationships and such.

P: n/a
Can anyone explain to me what the primary key should be or when and if you
use one.
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"noname" <no*************@nospam.net> wrote in message news:8z*****************@fe03.lga...
Can anyone explain to me what the primary key should be or when and if you
use one.


I put one in every table (no matter what) and I always make it a long integer or a byte (for tables that will never have more than
250 entries). Each value should be unique and you basically use it to reference rows in your tables (e.g. select * from table where
ID = 3) is a query that selects the row out of the table where the primary key (read unique identifier) is three.

This is a very simple and rough explanation, HTH

- Nicolaas
Nov 13 '05 #2

P: n/a
noname wrote:
Can anyone explain to me what the primary key should be or when and if you
use one.


Go to Google.com & enter these search strings:

"primary key" "normal form"

You'll get a lot of sites to read

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.