Indexes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kiss07
    Banned
    New Member
    • Jan 2007
    • 99

    #1

    Indexes

    Hi,

    what is the use of Function based indexes.?
    compare to revere index ,which index is better? .

    Expecting replies..


    Arun..
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    function based means rather than a particular column/column combination the function is used only if a particular function is used on the column

    like UPPER

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      FUNCTION BASED INDEX
      =============== =======
      Code:
      CREATE INDEX FUNINDEMP ON EMP(UPPER(ENAME));
      NOTE:--INSTEAD OF CREATING THE INDEX ON THE COLUMN IT CREATES INDEX ON THE COLUMN EXPRESSION.


      in the above sample example the index will be used if the UPPER function is used on the ENAME column in the sql query.

      Comment

      Working...