当前位置:网站首页>postgres timestamp转人眼时间字符串或者毫秒值
postgres timestamp转人眼时间字符串或者毫秒值
2022-07-07 21:52:00 【jfqqqqq】
转字符串
方式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;
转毫秒
方式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;
边栏推荐
- 0-1背包问题
- SAP HR family member information
- 【7.5】15. 三数之和
- ASP. Net query implementation
- Lm12 rolling heikin Ashi double K-line filter
- 【7.4】25. Turn over the linked list in groups of K
- Right click the idea file to create new. There is no solution to create new servlet
- 【7.4】25. K 个一组翻转链表
- One week learning summary of STL Standard Template Library
- Open source hardware small project: anxinco esp-c3f control ws2812
猜你喜欢
平衡二叉樹【AVL樹】——插入、删除
B_ QuRT_ User_ Guide(36)
Anxinco esp32-a1s development board is adapted to Baidu dueros routine to realize online voice function
Unity3d learning notes 5 - create sub mesh
The file format and extension of XLS do not match
List. How to achieve ascending and descending sort() 2020.8.6
Take you hand in hand to build Eureka server with idea
进度播报|广州地铁七号线全线29台盾构机全部完成始发
SAP HR labor contract information 0016
First week of July
随机推荐
Fibonacci number of dynamic programming
How can we make money by making video clips from our media?
Solution of intelligent supply chain collaboration platform in electronic equipment industry: solve inefficiency and enable digital upgrading of industry
ASP. Net query implementation
C number of words, plus ¥, longest word, average value
B_ QuRT_ User_ Guide(38)
MySQL Architecture
POJ2392 SpaceElevator [DP]
SAP HR 社会工作经历 0023
[compilation principle] lexical analysis design and Implementation
[summary] some panels and videos seen
SLAM面试总结
Progress broadcast | all 29 shield machines of Guangzhou Metro Line 7 have been launched
[stm32+esp8266 connects to Tencent cloud IOT development platform 3] stm32+esp8266-01s dynamically registers devices on Tencent cloud (at instruction mode) -- with source code
FPGA basics catalog
谷歌浏览器怎么登录及开启同步功能
Possible SQL for Oracle table lookup information
StringUtils工具类
SAP HR 劳动合同信息 0016
Understand TCP's three handshakes and four waves with love