I have two columns of type timestamp(6)
in my table.
I want to find all the rows in the table where the time between these two timestamps is greater than 300 days. How do I write the WHERE
clause of my SQL statement?
I want to write something like this:
SELECT *
FROM TABLE
WHERE timestamp1 - timestamp2 > 300
这听起来像你想要的
WHERE (column1 - column2) > numtodsinterval( 300, 'day' )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.