# MySQL 刪除 unique key ```sql= CREATE TABLE `good_booked` ( `auto_id` int(10) NOT NULL auto_increment, `good_id` int(11) default NULL, `chemist_id` int(11) default NULL, PRIMARY KEY (`auto_id`), UNIQUE KEY `good_id` (`good_id`,`chemist_id`), KEY `current_state` (`current_state`), KEY `send_time` (`send_time`) ) ``` 想删除某个表中某个字段的unique key: ```sql= ALTER TABLE good_booked DROP INDEX good_id; ``` ###### tags: `MySQL`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up