How to get week start and end date string in PostgreSQL?

前端 未结 4 1409
野性不改
野性不改 2020-12-25 10:47

I am using PostgreSQL 8.3. I have a table like this:

id        regist_time        result
-----------------------------------
1     2012-07-0         


        
4条回答
  •  北荒
    北荒 (楼主)
    2020-12-25 11:18

    It is

    select to_date('2015-07', 'IYYY-IW');
    

    use it in postgres

    it will return

    2015-02-09
    

提交回复
热议问题