Answers for "mysql drop index"

SQL
1

mysql drop index

DROP INDEX `PRIMARY` ON t;
Posted by: Guest on July-01-2020
0

drop index if exists mysql

create procedure DeleteIndex()
begin

IF EXISTS ( SELECT * FROM INFORMATION_SCHEMA.STATISTICS  WHERE TABLE_NAME = 'TableName'
            AND INDEX_NAME = 'IndexName' AND INDEX_SCHEMA='DbName') THEN
   ALTER TABLE  TableName DROP index THead2;
END IF;
END
Posted by: Guest on August-21-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language