时间:2021-07-01 10:21:17 帮助过:20人阅读
SELECT * FROM `user` WHERE name LIKE 'a%';SELECT * FROM `user` WHERE name LIKE 'A%';其结果是一样的,为了区分'A%'和'a%',可以这么做:
SELECT * FROM `user` WHERE binary name LIKE 'a%';SELECT * FROM `user` WHERE binary name LIKE 'A%';仅仅多了一个binary,就可以得到不同的结果!
createtable`user`( name varchar (20) binary);