Application Development 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: 

Index Vs Primary Key of a table/Internal table

Former Member
0 Kudos

Hello Friends,

What is the difference between Key and Index of a table?

What is the difference between creating an index and specifying "Is Unique" to "Yes" vs creating a Unique Key and specifying "Is Unique" to "Yes"?

Thanks

Simmi

2 REPLIES 2

Former Member
0 Kudos

Hi Simmi,

key is nothing but primary key.it is unique .

Index is nothing but row number of a table and it is used to search the data fastly.

based on index we can retreive data fastly.

if you mentioned the key field in read statement it will fetch the exact record.

Unique is nothing but it wont allow duplicate entries inside the table.

Non-unique allows duplicate entries.

thanks,

surendra babu vemula