select col1,col2 [,col3] --执行顺序:3
from table --执行顺序:1
where 过滤条件 --执行顺序:2
关系运算符:> < >= <= <> !=
逻辑运算符:and or not
范围运算符:between … and
谓词范围:in not in
空判断 : isnull isnotnull
模糊查询: like
1.Oracle数据库是区分大小写的
2.关系运算符是不区分数据类型的,如 name>’李’,name>300
select * from where not sal>=;
--不要写过滤复杂的操作
select * from where sal<;
select * from where sal>= and sal<=--查询二个条件
select * from where sal between and --查询一个条件
‘
’