Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个名为 optima 的表,其中包含一些字段,我需要进行一个查询,该查询将在 field1 =a和 field2 =处返回结果b。
a
b
以表为例
F1 F2 _____ a z v a a b b a
结果必须是:
a b
我试图进行查询
SELECT * FROM `optima` WHERE `F1` LIKE 'a' AND `F2` LIKE 'b';
但它什么也没给我。
对于完全匹配,请使用=运算符,例如:
=
select * from `optima` where `F1` = 'a' and `F2` = 'b';