Oracle第三章

本文详细介绍了Oracle数据库中常用的字符串、数学、日期以及聚合函数,包括concat、initcap、length、substr、replace、CEIL、FLOOR、ROUND、TRUNC、sysdate、to_char、to_date、systimestamp、to_timestamp、add_months、months_between、max、min、count、sum和avg等,通过实例展示了它们的用法和功能。
摘要由CSDN通过智能技术生成

第三章 组函数

字符串函数

-- concat   连接两个字符串

select concat('abc','ABC') from dual;

select 'abc'||'ABC' from dual;

select concat(first_name,'_')||last_name con,t.* from EMPLOYEES t;

-- initcap  返回字符串,第一个大写,其余小写

select initcap(email) from EMPLOYEES;

-- length   返回字符串长度

select length(email),t.* from EMPLOYEES t;

-- lower    所有字符小写

-- upper    所有字符大写

select lower(first_name),upper(last_name),t.* from EMPLOYEES t;

-- substr 字符串截取

select substr('123456789',3,4) from dual;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值