Equivalent of strftime in Postgres

后端 未结 3 2000
甜味超标
甜味超标 2020-12-06 23:02

After migrating my SQLite database to Postgres on the development server, I get the

PG::UndefinedFunction: ERROR:  function strftime(unknown, date) does not         


        
3条回答
  •  悲哀的现实
    2020-12-06 23:35

    You probably want to use date_part(). See the documentation here http://www.postgresql.org/docs/9.1/static/functions-datetime.html

提交回复
热议问题