Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
You will have to drop each index in turn and then recreate it to do this.

ALTER TABLE tablename DROP INDEX indexname;
ALTER TABLE tablename ADD INDEX indexname (field1, field2, ...);

As an example I am using the w3t_AddressBook table:

ALTER TABLE w3t_AddressBook DROP INDEX address_ndx1;
ALTER TABLE w3t_AddressBook ADD INDEX address_ndx1 ( Add_Owner );

www.mysql.com will be your guide and ensure that the ADD INDEX is correct while creating the index because the one that you are working on might be a PRIMARY (and then the syntax changes).

I hope this helps.


Nikos
Sponsored Links
Entire Thread
Subject Posted By Posted
new posts not showing up TEXMudder 11/22/2004 7:43 AM
Re: new posts not showing up Medar 11/22/2004 5:29 PM
Re: new posts not showing up RANCH4x4_dup1 11/22/2004 11:27 PM
Re: new posts not showing up dimopoulos 11/23/2004 1:01 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,153
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 4540
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 25
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)