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

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

数据库编码 GBK

巴扎黑
巴扎黑

répondre à tous(3)
Peter_Zhu

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

左手右手慢动作

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

洪涛

RTFM

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

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!