📜  mysql 检查是否小写 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:35.361000             🧑  作者: Mango

代码示例1
-- will detect all names that are not in uppercase
SELECT 
    name, UPPER(name) 
FROM table 
WHERE 
    BINARY name <> BINARY UPPER(name)
;

-- will detect all names that are not in lowrcase
SELECT 
    name, UPPER(name) 
FROM table 
WHERE 
    BINARY name <> BINARY LOWER(name)
;