MySQL Generator

Add Unique Key - Table Structure

Query Output:

CopiedCopy Code

ALTER TABLE <table_name> ADD UNIQUE KEY(<comma seperated fields>);


Drop Unique Key - Table Structure

Query Output:

CopiedCopy Code

ALTER TABLE <table_name> DROP INDEX <field name>;