当前位置:网站首页>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;
边栏推荐
猜你喜欢
平衡二叉樹【AVL樹】——插入、删除
New potential energy of industrial integration, Xiamen station of city chain technology digital summit successfully held
List. How to achieve ascending and descending sort() 2020.8.6
Solution of intelligent supply chain collaboration platform in electronic equipment industry: solve inefficiency and enable digital upgrading of industry
The efficient s2b2c e-commerce system helps electronic material enterprises improve their adaptability in this way
B_ QuRT_ User_ Guide(36)
[STM32 + esp-12s connect Tencent cloud IOT development platform 1] creation of cloud platform and burning of at firmware
Flash encryption process and implementation of esp32
Ora-01741 and ora-01704
SRM supplier cloud collaborative management platform solution for building materials industry to realize business application scalability and configuration
随机推荐
USB (XIV) 2022-04-12
0-1 knapsack problem
New potential energy of industrial integration, Xiamen station of city chain technology digital summit successfully held
UE4_ Ue5 combined with Logitech handle (F710) use record
The efficient s2b2c e-commerce system helps electronic material enterprises improve their adaptability in this way
Progress broadcast | all 29 shield machines of Guangzhou Metro Line 7 have been launched
产业共融新势能,城链科技数字峰会厦门站成功举办
Force deduction solution summary 648 word replacement
648. Word replacement
Right click the idea file to create new. There is no solution to create new servlet
Oracle statistics by time
城联优品作为新力量初注入,相关上市公司股价应声上涨150%
Spark 离线开发框架设计与实现
SQL database execution problems
C simple question one
B_QuRT_User_Guide(39)
Senior programmers must know and master. This article explains in detail the principle of MySQL master-slave synchronization, and recommends collecting
Fibonacci number of dynamic programming
As a new force, chenglian premium products was initially injected, and the shares of relevant listed companies rose 150% in response
USB (XV) 2022-04-14