select replace('hello,world!','o','aa') as replace from dual;
select ltrim(' hello,world!') ltrim from dual ;
select rtrim(' hello,world! ') rtrim from dual ;
select ltrim(' hello,world! ') ltrim from dual ;
select trim(' hello,world! ') trim from dual ;
select null('a',null) from dual;
select length('hello,world!') as length from dual;
select substr('hello,world!',-3) from dual;
/*select charindex('e','hello,world!') from dual;*/
select instr("varchar",'string') from dual;
select instr('ss.sss', '.', 1, 1) as a from dual;
select instr('ss.ss.s', '.', -4, 1) as from dual;
select lower('HELLO,WORLD!') from dual;
select UPPER('hello,world!') from dual;
select rand() from dual;
select ascii('j') j,ascii('o') o,ascii('a') a,ascii(' n') n from dual;
/*select dateadd(day,2,'2004-10-15') from dual; */
select sysdate from dual;
select to_char(sysdate,'dd-mm-yyyy day') from dual;
select concat('010-','88888888')||'转23' 高乾竞电话 from dual;
select initcap('smith') upp from dual;
select lpad(rpad('gao',4,'*'),17,'*')from dual;
select TRIM('s' from 'string') from dual;
select power(2,10),power(3,3) from dual;
select round(55.5),round(-55.4),trunc(55.5),trunc(-55.5) from dual;
select to_char(add_months(to_date('199912','yyyymm'),2),'yyyymm') from dual;
select to_char(add_months(to_date('199912','yyyymm'),-2),'yyyymm') from dual;
select last_day(sysdate) from dual;
select greatest('啊','安','天','操','爷') from dual;
select greatest(1,2,4,30,6) from dual;
select user from dual;
select username,user_id from dba_users where user_id=uid;
select userenv('sessionid') from dual;
select userenv('instance') from dual;
select distinct table_name from user_tab_columns where column_name='id';
select * from sp_resource;
select sr.resource_category_id,sum(sr.id) from sp_resource sr group by sr.resource_category_id;
select sr.sp_id,sum(sr.id) from sp_resource sr group by sr.sp_id;
select sr.sp_id,sum(sr.id) from sp_resource sr group by sr.sp_id;
selectr count(sr.sp_id),sum(sr.id) from sp_resource sr group by sr.sp_id;
select rownum num,a.*
from (select count(sr.sp_id) count,sr.sp_id, sum(sr.id)
from sp_resource sr
group by sr.sp_id) a;
select to_char(sysdate ,'yyyy-mm-dd HH:mm:ss') from dual
select nvl('','456') from dual;
select nvl('123','456') from dual;
分享到:
相关推荐
oracle常见函数整理
该Word文档包括Oracle数据库常见字符串函数、时间日期等,且附带导航栏工具,方便搜索,你值得拥有!
NULL 博文链接:https://fangguanhong.iteye.com/blog/2003526
Oracle分析函数,常见的基本统计函数里面都有,大家可以通过安装Oracle的示例数据库来一步一步跟进学习!
该文档对DB2和Oracle中的一些常用函数进了比较,方便转型的人学习了解
Oracle数据库函数大全,包括了oracle所有常见的函数,并且举例说明。非常实用。
oracle常见的110种函数的简单描述及用法。
ORACLE函数大全,常见的ORACLE函数
Oracle中常用的函数,没事的时候可以看看。
oracle函数 常见的函数的一般的用法之类 有函数介绍也有相关实例
本人对oracle常用函数和常见错误的积累
oracle函数大全,常见的oracle处理函数,文档帮助
Oracle日期函数集锦,常见日期函数的使用,及具体的使用实例
包括 oracle常见傻瓜问题,oracle数据库字符集问题,oracle数据字典总结,修改oracle端口,oracle函数大全等问题,大部分都是我自己总结的。希望能跟大家分享
常见一些oracle函数,常见的分析统计函数
Oracle数据库教学中常见函数的应用.pdf
常见的oracle问题汇总,如下所示: 1. Oracle安裝完成后的初始口令? 2. ORACLE9IAS WEB CACHE的初始默认用户和密码? 3. oracle 8.0.5怎么创建数据库? 4. oracle 8.1.7怎么创建数据库? 10. 用什么语句查询字段呢? ...
Oracle函数多种多样,系统变量函数就是其中之一,介绍三种最常见的系统变量函数。 Oracle系统变量函数: 1)SYSDATE 该函数返回当前的日期和时间。返回的是Oracle服务器的当前日期和时间。 select sysdate from ...
由于teradata数据仓库缺少常用函数,平时使用很不方便,找了很久找到了这么多oracle常见的函数包,生成到teradata里面可以像oracle一样很方便的使用replace等函数了
该脚本包含递归查询、删除数据表中重复数据、分组取最大记录,行列互转、多行合并等不常见但是非常实用的oracle函数并附带详细的实例持续更新中