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.
基本的に、列がどちらかと等しいfooWHEREという TABLE で値を選択したいと思いますまたは。foofoo1foo2
foo
foo1
foo2
これは可能な限り少ないクエリ コードで可能ですか?
これには正規表現が必要かもしれないと思っていますが、もっと短い方法があればそれでいいのです。
IN または OR を使用した条件の組み合わせのいずれかを使用します
select * from table where col in ('foo1', 'foo2') select * from table where col = 'foo1' or col = 'foo2'