Hi
This should be easy
all i want to do is select all the records in a table greater than three days old.
select * from tableA where tablea.timestmp < current_timestamp - 3; does not work.
i'm stumped.
hi
thanks for the input
i found the solution though i do not know if it will work in both php and java sqlj/jdbc
SELECT *
FROM shopping_cart
where shopping_cart.timestmp
<= DATE_SUB(CURRENT_TIMESTAMP, INTERVAL "3" DAY)
order by shopping_cart.timestmp desc;
it works perfect.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.