如何添加最后一秒到日期? [英] How to add last second into date?
本文介绍了如何添加最后一秒到日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将日期的最后一秒添加到日期中?
is it possible to add such a thing as last second of the day into date?
比方说,我有不同时间的日期,我需要将每个日期设置为时间23:59:59 ...
Let's say that I have dates with different times and I need every date set to time 23:59:59...
有可能吗?
谢谢
推荐答案
update the_table
set the_date_column = to_date(to_char(the_date_column, 'yyyy-mm-dd')||' 23:59:59', 'yyyy-mm-dd hh24:mi:ss');
这篇关于如何添加最后一秒到日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文