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

Using indexes

Former Member
0 Likes
786

Hi experts,

I have a table with a created index ZIN (containing 4 fields).

If I want to use the index in the selection, what is the right statement?

1 ACCEPTED SOLUTION
Read only

former_member182354
Contributor
0 Likes
760

Hi,

To use that Index write a Select statement with all the four fields available in the index in your where clause..

Raghav

7 REPLIES 7
Read only

former_member182354
Contributor
0 Likes
761

Hi,

To use that Index write a Select statement with all the four fields available in the index in your where clause..

Raghav

Read only

0 Likes
760

If I use 7 fields in the select statement, but it is including my 4 fields from the index, the system will automatically know that I want to use an index, am I right?

Read only

0 Likes
760

yes...it will automatically decide

Read only

0 Likes
760

Yes.

Read only

former_member195383
Active Contributor
0 Likes
760

u write the select query normally. using those four fields.

The utilisation of indexing will be done internally.

It will enhance the performance of ur select query

Read only

Former Member
0 Likes
760

Hi,

You have to use the fields that are specified in the Index into the where clause of your Select Query.

The sequence should be same.

Make sure your Index have MANDT field as well.

You can ignore this in the where condition though.

Thanks

Pranu

Read only

Former Member
0 Likes
760

Thanks for the replies.