|
Posted by Toby Inkster on 10/11/33 11:47
Dikkie Dik wrote:
> Quite simple. If the primary key in your application is numeric, you got
> it from the database. Otherwise, how would you know the key value?
Because you know it?
For example, if I'm keeping a table of my customers' credit cards, I might
use:
customer_id (int, foreign key)
card_number (big int, primary key)
card_holder_name (varchar)
expiry_date (timestamp)
If I'm inserting a new record into the table then I already know the
primary key, don't I?
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|