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.
aいくつかのフィールドを持つoptimaというテーブルがあり、field1=と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';