1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| select * from stu where age > 20;
select * from stu where age != 20; select * from stu where age <> 20;
select * from stu where age >= 20 && age <= 30; select * from stu where age >= 20 and age <= 30;
select * from stu where BETWEEN 20 AND 30;
select * from stu where hire_date BETWEEN '1998-09-01' AND '1999-09-01'
select * from stu where age = 18 or age = 20 or age = 22; select * from stu where age in (18, 20, 22);
select * from stu where english = null; select * from stu where english is null; select * from stu where english is not null;
|