php-db | 2001062
Date: 06/22/01
- Next message: Graeme Merrall: "RE: [PHP-DB] ORACLE 8 randomly unsucessful execution"
- Previous message: Noah Spitzer-Williams: "[PHP-DB] advantages/disads of primary keys and indices?"
- In reply to: Noah Spitzer-Williams: "[PHP-DB] advantages/disads of primary keys and indices?"
- Next in thread: Noah Spitzer-Williams: "Re: [PHP-DB] advantages/disads of primary keys and indices?"
- Reply: Noah Spitzer-Williams: "Re: [PHP-DB] advantages/disads of primary keys and indices?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello Noah,
On 22-Jun-01 21:17:35, you wrote:
>what are the advantages and disadvantages of primary keys and indices?
A primary key is a unique index.
Use indexes for the fields that will be most looked up in the first
condition of the WHERE clause of your SQL queries, especially if your
tables will hold many values, but beware that indexes also take disk space.
Regards,
Manuel Lemos
Web Programming Components using PHP Classes.
Look at: email protected>?subject=Re:%20[PHP-DB]%20advantages/disads%20of%20primary%20keys%20and%20indices?&replyto=618.573T978T13634015mlemos <email protected>">mlemos <email protected>">http://phpclasses.UpperDesign.com/?user=mlemos <email protected>
-- E-mail: mlemos <email protected> URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp ---- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Graeme Merrall: "RE: [PHP-DB] ORACLE 8 randomly unsucessful execution"
- Previous message: Noah Spitzer-Williams: "[PHP-DB] advantages/disads of primary keys and indices?"
- In reply to: Noah Spitzer-Williams: "[PHP-DB] advantages/disads of primary keys and indices?"
- Next in thread: Noah Spitzer-Williams: "Re: [PHP-DB] advantages/disads of primary keys and indices?"
- Reply: Noah Spitzer-Williams: "Re: [PHP-DB] advantages/disads of primary keys and indices?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

