Maison  >  Questions et réponses  >  le corps du texte

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

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

数据库编码 GBK

巴扎黑巴扎黑2743 Il y a quelques jours775

répondre à tous(3)je répondrai

  • 天蓬老师

    天蓬老师2017-04-17 11:05:10

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

    répondre
    0
  • ringa_lee

    ringa_lee2017-04-17 11:05:10

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

    répondre
    0
  • PHP中文网

    PHP中文网2017-04-17 11:05:10

    RTFM

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

    répondre
    0
  • Annulerrépondre