mysql中 select * from xxx where xxx.ttt like '%~%' 是什么意思
巴扎黑
巴扎黑 2017-04-17 11:03:10
0
3
769

mysql中 select * from xxx where xxx.ttt like '%~%' 是什么意思

数据库编码 GBK

巴扎黑
巴扎黑

reply all(3)
Peter_Zhu

数据库编码 是 GBK 的时候 mysql 存在 bug 所以 那条sql 是不会被正确执行的
具体的表现是
包含~ 和 包含 Y 的内容都会被搜索出来。

左手右手慢动作

查询xxx表,ttt字段模糊条件。。
%代表任意字符
即表示123~456、abc~def,这样的都可以满足条件

洪涛

RTFM

http://dev.mysql.com/doc/refman/5.6/e...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!