【发布时间】:2019-06-20 17:35:44
【问题描述】:
看看下面的两个语句,谁能告诉我为什么第二个语句的时间是“11:07”。鉴于第一条语句返回 23:00,我期待“11:00 PM”的时间。
select early_shpdte
from shipment
where ship_id = '3644783_02_94874_5835330-01'
结果:07-09-2019 23:00:00
select to_char(early_shpdte, 'MM/DD/YYYY HH:MM AM')
from shipment
where ship_id = '3644783_02_94874_5835330-01'
结果:2019 年 7 月 9 日晚上 11:07
【问题讨论】: