当前位置:网站首页>Postgres timestamp to human eye time string or millisecond value
Postgres timestamp to human eye time string or millisecond value
2022-07-07 23:45:00 【jfqqqqq】
Turn the string
The way 1
SELECT to_char(create_time, 'YYYY-MM-DD hh24:mi:ss') from io_batch_time where status = 6 and gb_code = '156110000' order by create_time;
Turn millisecond
The way 1
SELECT batch_name,floor(extract(epoch from create_time)*1000),create_time from io_batch_time where status = 6 and gb_code = '156110000' order by create_time;
边栏推荐
- C method question 2
- 【实验分享】通过Console口登录到Cisco设备
- Pycharm essential plug-in, change the background (self use, continuous update) | CSDN creation punch in
- Resolve the URL of token
- 数据湖(十五):Spark与Iceberg整合写操作
- P2141 [noip2014 popularization group] abacus mental arithmetic test
- 2022.7.7-----leetcode.648
- Alibaba cloud MySQL cannot connect
- Restricted linear table
- 正畸注意事项(持续更新中)
猜你喜欢
Get started with mongodb
How did a fake offer steal $540million from "axie infinity"?
C number of words, plus ¥, longest word, average value
Flash encryption process and implementation of esp32
Chisel tutorial - 05 Sequential logic in chisel (including explicit multi clock, explicit synchronous reset and explicit asynchronous reset)
C inheritance and interface design polymorphism
Apng2gif solutions to various problems
Magic fast power
SAP HR reward and punishment information export
Chisel tutorial - 03 Combinatorial logic in chisel (chisel3 cheat sheet is attached at the end)
随机推荐
Take you hand in hand to build Eureka server with idea
通达信买基金安全吗?
gorm 关联关系小结
Restricted linear table
保证接口数据安全的10种方案
激光slam学习(2D/3D、偏实践)
35岁那年,我做了一个面临失业的决定
Possible SQL for Oracle table lookup information
Svn relocation
An example analysis of MP4 file format parsing
C method question 1
解析token的网址
Ora-01741 and ora-01704
archery安装测试
HDU - 1260 tickets (linear DP)
SAP HR reward and punishment information export
C number of words, plus ¥, longest word, average value
Summary of common methods of object class (September 14, 2020)
Codeworks 5 questions per day (average 1500) - day 8
P5594 [xr-4] simulation match