当前位置:网站首页>[Oracle] simple date and time formatting and sorting problem
[Oracle] simple date and time formatting and sorting problem
2022-07-07 05:23:00 【kenwm】
The so-called format date refers to converting the date into a string , Or convert the string to a date , The following functions can be used to format dates .
TO_CHAR(datetime, 'format')
TO_DATE(character, 'format')
TO_TIMESTAMP(character, 'format')
TO_TIMESTAMP_TZ(character, 'format')
Example
select to_char(a.CREATE_TIME,'yyyy-mm-dd') from students
select * from Table name where Conditions can be added to this ORDER BY Date fields desc, The time field desc
This is to write a ORDER BY Keywords are sorted according to the date field, then add a comma, and then write the time field to sort
select to_char(a.CREATE_TIME,'yyyy-mm-dd') from students
where a.s_name like '% yellow ' order by a.create_time
Oracle Format date
oracle Database about sorting by date and time
边栏推荐
- Why JSON is used for calls between interfaces, how fastjson is assigned, fastjson 1.2 [email protected] Mapping relatio
- 线程同步的两个方法
- How does redis implement multiple zones?
- CentOS 7.9 installing Oracle 21C Adventures
- window定时计划任务
- Leetcode (417) -- Pacific Atlantic current problem
- How can professional people find background music materials when doing we media video clips?
- Timer create timer
- If you‘re running pod install manually, make sure flutter pub get is executed first.
- 【PHP SPL笔记】
猜你喜欢
Auto. JS get all app names of mobile phones
Leetcode (417) -- Pacific Atlantic current problem
《五》表格
PMP证书有没有必要续期?
[question] Compilation Principle
全链路压测:影子库与影子表之争
Auto.js 获取手机所有app名字
利用OPNET进行网络指定源组播(SSM)仿真的设计、配置及注意点
If you‘re running pod install manually, make sure flutter pub get is executed first.
SQL injection HTTP header injection
随机推荐
【js组件】date日期显示。
QSlider of QT control style series (I)
记录一次压测经验总结
Leetcode(417)——太平洋大西洋水流问题
MySQL数据库学习(8) -- mysql 内容补充
vector和类拷贝构造函数
Batch normalization (Standardization) processing
想要选择一些部门优先使用 OKR, 应该如何选择试点部门?
Dynamically generate tables
Simulate thread communication
AIDL 与Service
《4》 Form
一个酷酷的“幽灵”控制台工具
阿里云的神龙架构是怎么工作的 | 科普图解
AOSP ~binder communication principle (I) - Overview
How can project managers counter attack with NPDP certificates? Look here
使用知云阅读器翻译统计遗传学书籍
【问道】编译原理
Knapsack problem (01 knapsack, complete knapsack, dynamic programming)
CentOS 7.9安装Oracle 21c历险记