Rumah  >  Soal Jawab  >  teks badan

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

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

数据库编码 GBK

巴扎黑巴扎黑2743 hari yang lalu780

membalas semua(3)saya akan balas

  • 天蓬老师

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

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

    balas
    0
  • ringa_lee

    ringa_lee2017-04-17 11:05:10

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

    balas
    0
  • PHP中文网

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

    RTFM

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

    balas
    0
  • Batalbalas