What is PostgreSQL equivalent of SYSDATE from Oracle?

前端 未结 4 987
梦如初夏
梦如初夏 2021-02-04 23:01

I want to perform a query using sysdate like:

select up_time from exam where up_time like sysdate

which is possible in Oracle.

However,

4条回答
  •  逝去的感伤
    2021-02-04 23:57

    NOW() is the replacement of Oracle Sysdate in Postgres.

    Try "Select now()", it will give you the system timestamp.

提交回复
热议问题