where条件语句
逻辑
and or
比较
> < = <= >= !=
between and
null处理 is is not nvl( ,0)
like模糊处理 查询包括
in not in 多个
as 别名
order by 列名 asc desc 在where之后
字符函数
concat连接 ||
length长度
substr截取
instr位置
lower upper大小写
trim去掉首尾空格
replace替代
日期函数
to_date时间格式转换
mouths_between计算相距月份
trunc截取日期
date timestamp
sysdate systimestamp 系统时间
extract截取 单位
add_months添加月份
last_day最后一天
next_day下一天
trunc第一天
数学函数
ceil向上取整
floor向下取整
mod取余
round四舍五入
trunc截取
通用函数
case
when then
else 范围比较
decode 等值比较
nvl
to_char to_number 转化