I'm writing an install script and need to create an index if it does not exists.
I've tried SQL statements but none of them work.


Basically I'm looking to do something like

$sql[] = "ALTER TABLE `exp_members` ADD INDEX IF NOT EXIST `idx_members_username` ( `username` )";

Is this possible?


Thanks, Mike




-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to