自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Oracle數(shù)據(jù)庫中ceil函數(shù)的操作方案

數(shù)據(jù)庫 Oracle
以下的文章主要會(huì)涉及到Oracle數(shù)據(jù)庫函數(shù)中的幾種常用函數(shù)的介紹,如果你對(duì)在Oracle數(shù)據(jù)庫函數(shù)中常用的相關(guān)函數(shù)感興趣的話,可以瀏覽以下的文章。

以下的內(nèi)容主要介紹的是Oracle數(shù)據(jù)庫中ceil函數(shù)的求比某個(gè)數(shù)大的最小整數(shù)的實(shí)際應(yīng)用的相關(guān)介紹,以下就是文章對(duì)其的實(shí)際的相關(guān)操作的具體介紹。 望你瀏覽完以下的內(nèi)容會(huì)有所收獲。

 

  1. SQL> select ceil(comm),comm from myemp where ename='MORFLAME';  
  2. CEIL(COMM) COMM  
  3. 556 555.55  

 

 

floor函數(shù):求比某個(gè)數(shù)小的最大整數(shù)

 

 

  1. SQL> select floor(comm),comm from myemp where ename='MORFLAME';  
  2. FLOOR(COMM) COMM  
  3. 555 555.55  

 

 

取模函數(shù)mod

 

 

  1. SQL> select mod(12,3) from dual 

此處的dual表是個(gè)虛擬表,僅僅用來測(cè)試函數(shù)而已。

 

MOD(12,3)

 

0

 

abs,求絕對(duì)值函數(shù)

 

 

  1. SQL> select abs(-3) from dual;  
  2. ABS(-3)  

 

 

3

 

其它數(shù)學(xué)Oracle數(shù)據(jù)庫的函數(shù)還有:cos,cosh,exp,ln,log,sin,sinh,sqrt,tan,tanh,acos,asin,atan……

 

日期函數(shù)

 

sysdate:返回系統(tǒng)時(shí)間

 

 

  1. select sysdate from dual; 

 

add_months(d,n):從d這個(gè)日期開始加上n個(gè)月的日期

 

求8個(gè)月前入職的員工:

 

 

  1. select * from myemp where sysdate>add_months(hiredate,8); 

 

求入職天數(shù):

 

select sysdate-hiredate "入職天數(shù)",ename from myemp;

 

入職天數(shù) ENAME

 

 

10644.4805 SMITH

 

10579.4805 ALLEN

 

8073.48059 MORFLAME

 

last_day(d):返回指定日期所在月份的最后一天

 

求在本月的倒數(shù)第三天入職的員工:

 

 

  1. select ename,hiredate from emp where l
    ast_day(hiredate)
    -2=hiredate

 

 以上的相關(guān)內(nèi)容就是對(duì)Oracle數(shù)據(jù)庫中的相關(guān)函數(shù)的介紹,望你能有所收獲。

【編輯推薦】

  1. Oracle 10g在操作中三個(gè)版本的區(qū)別
  2. 在Oracle 學(xué)習(xí)中進(jìn)行數(shù)據(jù)庫查詢
  3. Oracle Copy命令中SQL*Plus的Copy命令操作
  4. 在Oracle創(chuàng)建索引的實(shí)際操作中會(huì)出現(xiàn)的限制條件
  5. Oracle數(shù)據(jù)庫中怎樣選擇合適索引類型
責(zé)任編輯:佚名 來源: 博客園
相關(guān)推薦

2010-04-30 16:19:08

Oracle數(shù)據(jù)庫

2010-05-05 15:45:52

Oracle數(shù)據(jù)庫

2010-05-05 14:13:52

Oracle數(shù)據(jù)

2010-07-22 13:52:24

2010-04-14 15:58:17

Oracle程序開發(fā)

2011-08-12 12:26:16

Oracle數(shù)據(jù)庫TNSListener

2011-07-14 09:48:13

Oracle數(shù)據(jù)庫

2010-04-27 10:39:59

Oracle數(shù)據(jù)庫

2010-04-30 14:39:03

Oracle數(shù)據(jù)庫

2009-07-02 00:00:00

OOPOracle

2009-09-04 09:54:59

數(shù)據(jù)庫名

2011-05-25 09:45:40

Oracle數(shù)據(jù)庫

2024-05-08 08:37:44

2010-04-15 12:43:06

Oracle數(shù)據(jù)庫

2011-08-02 17:06:29

Oracle遠(yuǎn)程數(shù)據(jù)庫創(chuàng)建DB Link

2011-05-26 14:31:57

Oracle數(shù)據(jù)庫

2010-07-22 11:17:52

SQL Server數(shù)

2011-05-26 13:36:40

Oracle數(shù)據(jù)庫時(shí)間處理

2010-02-01 10:10:41

Oracle數(shù)據(jù)庫優(yōu)化

2010-04-22 11:58:00

Oracle數(shù)據(jù)庫
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)