oracle常用语句记录 Oracle中的substr()函数 详解及应用

一、oracle数据库常用的99条查询语句

https://www.jb51.net/article/40470.htm

1、

查询出在 1981 年雇佣的全部雇员信息(1981 年 1 月 1 日 到 1981 年 12 月 31 日之间的雇佣的雇员)
select * from emp where hiredate between '1-1月-81' and '31-12月-81';

扩展:

Oracle中查询某个时间段的记录时,sql的写法 between and

 https://blog.csdn.net/qq_34120041/article/details/54600802

 2、substr

扩展:Oracle中的substr()函数 详解及应用

 https://www.cnblogs.com/dshore123/p/7805050.html

 3、trunc

https://jingyan.baidu.com/article/4dc408487c5910c8d846f14b.html

 https://www.cnblogs.com/iliuyuet/p/4585666.html

猜你喜欢

转载自www.cnblogs.com/z-y-x/p/11078187.html