Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
Node is saved as draft in My Content >> Draft
  • Indexes in SQL

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 33
    Comment on it

    To provide searching optimization we need to create indexes in the table. By default primary key is already indexed


    For searching by other columns apart from primary key we will create index into them for faster searching.


    Ex: CREATE INDEX nameidx
          ON student (name)
    


    Indexes can be of Unique type . You cannot have duplicate values in that index


    Ex: CREATE UNIQUE INDEX uninameidx
          ON student (name)
    


    We also can have multiple column indexes


    Ex: CREATE INDEX mulnameidx
          ON student (LastName, FirstName)
    
    SQL

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: