Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create and usage index

Status
Not open for further replies.

samansk

Technical User
Dec 7, 2000
44
I want to create Mysql index for faster searching data but I never make before .How can I make it?
 
Try it with 'Create Index':
Syntax: CREATE [UNIQUE] INDEX Index ON Table (Field[,...])
Example: CREATE UNIQUE INDEX stafflno_key ON stafftable(staff_id)

Notice that indexed fields have to be NOT NULL.

Hope it helps.

 
How to use after create index and how to maintain it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top