Re: No to_days format in postgresql?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I really need help to convert to_days from mysql to postgresql as below:

TO_DAYS(now()) - TO_DAYS(timecheck) <=7

how can i do it in postgresql?

(timecheck - interval '7 days') <= current_timestamp

Chris


[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux