How can I employ "if exists" for creating or dropping an index in MySQL?

Posted by Paul on Stack Overflow See other posts from Stack Overflow or by Paul
Published on 2010-03-19T19:47:12Z Indexed on 2010/03/19 19:51 UTC
Read the original article Hit count: 187

Filed under:
|
|

I was wondering if there's a way to check if an index exists before creating it or destroying it on MySQL. It appears that there was a feature request for this a few years back, but I can't find any documentation for a solution. This needs to be done in a PHP app using MDB2.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about php