functions
函式INITCAP()是將每個單詞的第一個字母大寫,其它字母變為小寫返回.
單詞由空格,控制字元,標點符號等非字母符號限制.
select initcap('hello world') from dual;
結果
INITCAP('HELLO WORLD')
-----------
Hello World
單詞由空格,控制字元,標點符號等非字母符號限制.
select initcap('hello world') from dual;
結果
INITCAP('HELLO WORLD')
-----------
Hello World
SELECT TRUNC(15.79,1) "Truncate" FROM DUAL; Truncate ---------- 15.7 SELECT TRUNC(15.79,-1) "Truncate" FROM DUAL; Truncate ---------- 10
The following example rounds a number to one decimal point:
SELECT ROUND(15.193,1) "Round" FROM DUAL; Round ---------- 15.2
SELECT ROUND(15.193,-1) "Round" FROM DUAL; Round ---------- 20
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26870952/viewspace-2151537/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle WMSYS FunctionsOracleFunction
- Refactoring to FunctionsFunction
- C_functionsFunction
- Expression Date FunctionsExpressFunction
- Oracle Date FunctionsOracleFunction
- Analytic Functions in OracleFunctionOracle
- SQL Server LEFT FunctionsSQLServerFunction
- TypeScript 之 More on FunctionsTypeScriptFunction
- MySql Date/Time FunctionsMySqlFunction
- PHPExecuteCommandBypassDisable_functionsPHPFunction
- Hive FUNCTIONS函式HiveFunction函式
- 指南:函式(Functions)函式Function
- Pipelined FunctionsFunction
- graphite custom functionsFunction
- SQL Server SUBSTRING FunctionsSQLServerFunction
- Swift-函式(Functions)Swift函式Function
- (轉)jQuery String FunctionsjQueryFunction
- Procedure for Setting Partner FunctionsFunction
- Declaring Attributes of FunctionsFunction
- DETERMINISTIC Functions (203)Function
- Standard Functions Used in SAP Retail with ArticlesFunctionAI
- Redis Functions 介紹之一RedisFunction
- Redis Functions 介紹之二RedisFunction
- Day6 函式(Functions)函式Function
- Oracle Pipelined Table FunctionsOracleFunction
- [Reactive] Run functions when data changesReactFunction
- css45 CSS Math FunctionsCSSFunction
- Oracle Pipelined Table Functions(轉)OracleFunction
- PostgreSQL DBA(39) - PG 12 Functions for partitionsSQLFunction
- Azure Functions(一)什麼是 ServerLessFunctionServer
- 微軟正式釋出Azure Functions 2.0微軟Function
- 正式釋出!Azure Functions OpenAPI ExtensionFunctionAPI
- Chainlink Functions 介紹 & 使用案例AIFunction
- Scala的Pattern Matching Anonymous FunctionsFunction
- VS Code部署Teams webhook到Azure FunctionsWebHookFunction
- Node.js async functions 最佳實踐Node.jsFunction
- Hive 視窗函式(Windowing Functions)Hive函式Function
- improving performance with pipelined table functionsORMFunction