PDA

View Full Version : Dropping Index


Boofo
06-11-2003, 07:22 AM
Can someone tell me how you would drop an index? I want to reverse this query:

ALTER TABLE `attachment` ADD INDEX ( `postid` );

filburt1
06-11-2003, 10:38 AM
Change ADD to DROP, IIRC.

Boofo
06-11-2003, 10:40 AM
I did that before I wrote the above request and I got an error.

Xenon
06-11-2003, 02:09 PM
why not just use phpmyadmin ?
it's much easier to just click on the drop index link ;)

Boofo
06-11-2003, 02:15 PM
I was in phpmyadmin and I didn't see any drop index link. Where is it, sir? ;)

Xenon
06-11-2003, 02:21 PM
it's right to the index when you view tha table properties.
maybe it's named delete or something like, i just have the german version here :)

Boofo
06-11-2003, 02:25 PM
I found it right after I posted that message. Sorry about that. ;) Thank you for letting me know that was there.