Skip to content
Advertisement

From Now() to Current_timestamp in Postgresql

In mysql I am able to do this:

now in postgresql I am using this query:

but I get this error:

How can I resolve ?

Advertisement

Answer

Use an interval instead of an integer:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement