1. 程式人生 > >Oracle之字元操作函式(認證考試指南)

Oracle之字元操作函式(認證考試指南)

數字TRUNC函式

數字TRUNC函式小數點精度是正數,依據指定的小數精度刪除數字,不取捨。小數點精度是負數,從小數點左邊第n個數位開始向後歸0。

                       e.g:select  trunc (1601.916,-3)  from dual                             查詢結果為1000

                                 select  trunc (1601.916,2)  from dual                              查詢結果為1061.91