Is there any way to make a UNIQUE index case insensitive in Mysql 5.1.x ?

前端 未结 3 1676
抹茶落季
抹茶落季 2020-12-30 11:06

If so - What must change in this table ?

CREATE TABLE  contestants 
( 
  idContestants  int(10) unsigned NOT NULL AUTO_INCREMENT,
  idEvent        int(10) un         


        
3条回答
  •  攒了一身酷
    2020-12-30 11:35

    This worked for me in Mysql 5.5

    ALTER TABLE `contestants` MODIFY
    `ContestantName` VARCHAR(50) 
    CHARACTER SET latin1
    COLLATE latin1_bin;
    

提交回复
热议问题