![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
postgresql
文章平均质量分 67
wudixiaotie
这个作者很懒,什么都没留下…
展开
-
postgresql 函数中日期的加减
在PostgreSQL中可以直接对时间进行加减运算:、SELECT now()::timestamp + '1 year'; --当前时间加1年SELECT now()::timestamp + '-1 year'; --当前时间减1年SELECT now()::timestamp + '1 month'; --当前时间加一个月SELECT now()::timestamp + ...2014-06-10 10:03:34 · 23411 阅读 · 0 评论 -
转载dense_rank
http://blog.csdn.net/winer2008/article/details/4283539原创 2014-07-29 08:15:32 · 64 阅读 · 0 评论 -
drop function
在pgsql中 如果要删除函数,除了必须是这个函数的主人以外,还要指定函数的参数类型。DROP FUNCTION calculate_current_maintenance_date ( company_id companies.id%TYPE );...2014-08-05 09:51:42 · 532 阅读 · 0 评论