我试图运行以下内容:
SELECT *
from `picks`
where `name` = 'test' and `a1` = '1' and `a2` = '2'
and `a3` = '3' and `a4` = '4' and `a5` = '5' and `a6` = '6' and `a7` = '7'
and `a8` = '8' and `a9` = '9' and `a10` = '10'
但由于某种原因,它会返回不正确的行,在a3
列下面的示例中为errr
,但我的查询说:
and `a3` = '3'
注意:查询数据不是数字,但实际上是主数据中的文本
答案 0 :(得分:1)
第一列名称错误,您有title
但是您正在寻找name
我不确定你需要'='运算符,当你试图匹配字符串
类似的东西:
SELECT * from `picks` where `title` LIKE 'title' AND `int_value_container`='1' AND `mixed_values` LIKE 'value123'