📜  mysql select where field is a value - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:23.004000             🧑  作者: Mango

代码示例1
SELECT *
FROM myTable
WHERE myColumn = 'resultA' 
   OR myColumn = 'resultB' 
   OR myColumn = 'resultC';

-- Alternatively,

SELECT *
FROM myTable
WHERE myColumn IN ('resultA', 'resultB', 'resultC');