当前位置:网站首页>[Oracle database] mammy tutorial day14 conversion function
[Oracle database] mammy tutorial day14 conversion function
2022-06-22 07:58:00 【Rookie advanced station】
Conversion function
1、ASCII(str) Convert a character into a ASCII code
SELECT ASCII('a') FROM DUAL;

2、CHR(num) according to ascii Convert to corresponding 97 character
SELECT CHR(97) FROM dual;

3、to_number(str) Convert a character type number to a numeric type number
SELECT to_number('123') FROM dual;

4、to_date(str,' Format ') Put the string Convert to date
SELECT DATE '1999-09-09',
TO_DATE('1999-09-09','YYYY-MM-DD')
FROM DUAL;

5、to_char( date , Format ) Convert date to character format
SELECT TO_char(SYSDATE,'yyyy') FROM dual;

6、to_char(NUM,' Format ')
Self rounding
9 Place holder
0 Place holder ( bits )
$ Dollar symbol
L Local currency
SELECT TO_CHAR(33.14,'L99.999') FROM DUAL;

边栏推荐
- Windchill - how to start workflow through API
- 基于消息传递的并发编程(MPI)之异步收发
- Cocoapods creates private libraries and publishes them
- 模板代码概述
- Docker install redis
- FileTool
- 4 solutions de court - circuit et 2 solutions d'arbre de génération minimum
- [songhongkang MySQL database] [advanced chapter] [07] MySQL storage engine
- AudioQueue
- Kotlin a simple Android program
猜你喜欢

【Oracle 数据库】奶妈式教程 day14 转换函数

Qualcomm platform LCM summary

(7)双向链表

Applet /vant UI to upload files

Problems caused by canvas palette width and height and canvas width and height

Multimedia architecture -- Introduction to display

模板代码概述

How Navicat queries the password information of the connected database

What is distributed transaction

Remote Desktop Manager
随机推荐
Symbolic processing of crash log
The ranking of websites is very important for websites
Kotlin a simple Android program
What are uniapp, wap2app and 5 + app in dccloud?
4、 Button component
5、 Image component
Qualcomm platform LCM summary
Cocoapods creates private libraries and publishes them
MySQL index
Docker install mysql, hello world
MTK platform execution disable_ Interrupt signals masked during IRQ will be enabled when I execute enable_ Continue triggering after IRQ
It operation and maintenance knowledge map
Xlua environment configuration
Remote Desktop Manager
Applet /vant UI to upload files
How can MySQL query the records with the largest consumption amount of each user?
Some problems caused by null data in MySQL
Template code overview
Skills required for O & M automation?
模板代码概述