sql基本函数语句

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 转化

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值