PostgreSQL时间加减

连夜声讨PG,居然时间加减写法有坑web select CURRENT_TIMESTAMP::TIMESTAMP - '5 day' 以上向前减5天,一直报错:[Err] ERROR: invalid input syntax for type timestamp: “5 day” 折腾很久,网上也没有正确的说明。而改成+号就能正常执行sql select CURRENT_TIMESTAMP::T
相关文章
相关标签/搜索