I am using phpMyAdmin and PDO. My database using utf8mb4_general_ci. And look like this.
CREATE TABLE `my_database`.`example` (
`id` INT NOT NULL AUTO_INCREMENT,
`code` VARCHAR(255) NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE (`code`)
) ENGINE = InnoDB;
I got an error when I inserted 'A' and 'a'.
I fix it by changing the Collation of the code
column to utf8mb4_bin.
Have any way to use utf8mb4_general_ci with sensitive cases? Can I set it in phpMyAdmin, PDO, or SQL?