我想要时间戳,它由
<[current date] + [specific time I can specify as a string]>
前任。
2016-03-08 23:59:59
2016-03-08=>当前日期
23:59:59=>我可以指定
我想做点什么
cast(cast( now()::timestamp(0) AS string) || '23:59:59' ) AS timestamp )
以更多的方式。

最佳答案

也许可以试试:

CURRENT_DATE + TIME '23:59:59'

我无法访问数据库atm,因此无法为您测试,但我发现下面链接中的表9-27非常有用(我发现整个网页非常有用)。
http://www.postgresql.org/docs/9.1/static/functions-datetime.html

关于sql - Postgres创建时间戳(当前日期+特定时间)格式,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/35889064/

10-13 00:47