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

general

Former Member
0 Likes
683

if we create secondary indices then how we have to write select statement for it ?plz reply to me .

1 ACCEPTED SOLUTION
4 REPLIES 4
Read only

Former Member
0 Likes
665

Hi Manjula,

Basically index are provided to improver performance. i.e with index select on db tables retrieves data much faster.

If you are writting select statement on the table where in where clause you have non-primary keys then it takes longer to retriev data from DB table.

If you have select in dbtable on non-primary key you can create Secondary index with keys as per your where clause which result in faster DB table access.

Thanks.

Read only

amit_khare
Active Contributor
0 Likes
665

Check the threads-

Regards,

Amit

Reward all helpful replies.

P.S. try to give more meaningful subject lines.

Read only

Former Member
0 Likes
665

index ?

u have to use all the fields on which u have created index.

like this

in my index fields are---

bwart

werks

charg

so my select stmt will be

select * from mseg into corresponding fields of i_mseg

where

bwart eq '101' and

werks eq 'pp01' and

chard ne ' '.

regards

Prabhu