Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

aaaaaaaaaaaaa

Former Member
0 Likes
868

hi what is the main diff bet primary key and primery index r they same or different

by using whish one performance is improved

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
828

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

5 REPLIES 5
Read only

Former Member
0 Likes
829

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>

Read only

Former Member
0 Likes
828

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.

Read only

Former Member
0 Likes
828

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

Read only

joerg_wegener
Product and Topic Expert
Product and Topic Expert
0 Likes
828

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

Read only

Former Member
0 Likes
828

Hi,

eck the below links to get the help on SECONDARY INDEX.

kishi.