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 --查詢一個條件
‘
’