2007 Feb 16 11:46 AM
hi what is the main diff bet primary key and primery index r they same or different
by using whish one performance is improved
2007 Feb 16 11:49 AM
They are the same. Yes with the use of index, performance is improved.
Please use meaningful subject line that will help you to get the answers quickly.
Best Regards,
Vibha
<b>*Please mark all the helpful answers</b>
hi what is the main diff bet primary key and primery index r they same or different
by using whish one performance is improved
2007 Feb 16 11:49 AM
They are the same. Yes with the use of index, performance is improved.
Please use meaningful subject line that will help you to get the answers quickly.
Best Regards,
Vibha
<b>*Please mark all the helpful answers</b>
2007 Feb 16 12:03 PM
Hi Pandu,
<b>Primary index</b>:
The primary index contains key fields of a table and a pointer to non-key fields of the table. The primary index is created automatically when a table is created in database and moreover you can further define reference to the primary index which are known as Secondary index.
<b>Primary Key:</b>
This is an index that cannot be NULL, Primary Keys are used in building relationships between tables in a database. (an index is automatically created on the primary key). The difference between primary and ordinary keys is that there can be multiple keys, but only one primary key.
Regards,
Priyanka.
2007 Feb 16 12:09 PM
hi Pandu,
The SAP documentation states the following:
"The primary index is distinguished from the secondary indexes of a table. The primary index contains the key fields of the table and a pointer to the non-key fields of the table. The primary index is created automatically when the table is created in the database."
Regards,
Santosh
2007 Mar 07 8:27 AM
Hi Pandu,
please keep in mind that some DBMSs sort their main tables physically according to the primary key. Therefore searching via primary key is sometimes faster than searching via index (unique or not). (This is the performance forum after all, so this might be of interest to you).
Kind regards,
Joerg
2007 Mar 07 10:30 AM