在Oracle查询中,可以使用WHERE子句来添加条件过滤
SELECT * FROM employees WHERE salary = 5000;
SELECT * FROM employees WHERE salary <> 5000;
SELECT * FROM employees WHERE salary < 5000;
SELECT * FROM employees WHERE salary > 5000;
SELECT * FROM employees WHERE salary <= 5000;
SELECT * FROM employees WHERE salary >= 5000;
SELECT * FROM employees WHERE last_name LIKE '%Smith';
SELECT * FROM employees WHERE department_id IN (10, 20, 30);
SELECT * FROM employees WHERE salary BETWEEN 4000 AND 6000;
SELECT * FROM employees WHERE salary > 5000 AND department_id = 10;
SELECT * FROM employees WHERE salary > 5000 OR department_id = 10;
SELECT * FROM employees WHERE salary <= 5000;
这些示例展示了如何在Oracle查询中使用条件过滤。你可以根据需要组合这些条件以满足特定的查询需求。