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

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

数据库编码 GBK

巴扎黑
巴扎黑

Antworte allen(3)
Peter_Zhu

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

左手右手慢动作

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

洪涛

RTFM

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

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!