输入banner图图片脚本导航/分类

MySQL之大小写区分

*_bin: 表示的是binary case sensitive collation,区分大小写
*_cs:表示的是 case sensitive collation,区分大小写
*_ci: 表示的是case insensitive collation,不区分大小写

如果设置成_bin之后,在查询数据的时候怎么不区分大小写呢?

and u.login_name COLLATE UTF8_GENERAL_CI like CONCAT(%,${params.loginName},% )

在查询条件加上校对格式即可

MySQL之大小写区分

标签: