简体   繁体   中英

Query to print date in yyyy-MM-dd'T'HH:mm:ss.SSSZ format in oracle and postgresql

是否可以在oracle和postgresql中以以下格式打印日期

2018-05-18’T’13:30:42.000+0000
SELECT to_char(systimestamp,'YYYY-MM-DD"''T''"HH24:MI:SS.FF3TZHTZM') FROM dual;

回报

2018-05-27'T'02:45:22.152+0200

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM