Some useful functions from Oracle database 11g

本文深入解析Oracle数据库11g中的关键函数,包括替换字符串、获取字符长度、首字母大写转换等,详细介绍了每个函数的功能、用法及实例应用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Replace(char, str1, str2) Replaces every occurrence of str1 in char with str2.

Length(char) Returns the length of the char.

Initcap(char) Changes the first character of each element in char to uppercase.

Power(m,n) Multiplies m to the power n.

Sqrt(n) Returns the square root of n.

Current_timestamp Returns the current timestamp along with the time zone offset.

YEAR year spelled out. For example: select to_char(sysdate, 'YEAR') from dual;------- TWENTY ELEVEN

WW week of year. For example: select to_char(sysdate, 'WW') from dual;

W week of the month. For example: select to_char(sysdate, 'W') from dual;

DDD Day of the year. For example: select to_char(sysdate, 'DDD') from dual;

DD Day of the month. For example: select to_char(sysdate, 'DD') from dual;

D Day of the week. For example: select to_char(sysdate, 'D') from dual;

These are all from "Oracle Database 11g, A Beginner's Guide"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值