catfan / Medoo

The lightweight PHP database framework to accelerate the development.
https://medoo.in
MIT License
4.83k stars 1.15k forks source link

about LIKE Condition 。。。 #511

Closed Tokyo-Lei closed 7 years ago

Tokyo-Lei commented 7 years ago
  1. mysql field uid = 1,2,13,14,12
  2. medoo "city[~]" => "2"
  3. to: 2,12 4 .i want it 2, no 12
jianfan0709 commented 7 years ago

you need to open debug select sql,check your sql condition。

RRRena

在 2016年12月21日,08:54,Ono Naoki notifications@github.com 写道:

mysql field uid = 1,2,13,14,12 2 medoo "city[~]" => "2" 3 to: 2,12, 4 i want it 2, no 12 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

catfan commented 7 years ago

Why not just "city" => 2?