Skip to Content
author's profile photo Former Member
Former Member

Using indexes

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 07:17 AM

    Hi,

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

    Raghav

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 23, 2008 at 07:18 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 07:18 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 07:23 AM

    Thanks for the replies.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.