You are here: Re: Database abstraction layers « PHP Programming Language « IT news, forums, messages
Re: Database abstraction layers

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация