That is because oracle doesn't have a NOW function as far as I know. Try using:
SELECT TO_DATE(SYSDATE - 30, 'MM/DD/YYYY HH:MI:SS AM')
FROM DUAL;
Looks like you copied that from MS Access... Terry M. Hoey
th3856@txmail.sbc.com
While I don't mind e-mail messages, please post all questions in these forums for the benefit of all members.
Whoops... Thanks Karluk. I saw the TO_ and knew they were converting it to CHAR for the formatting. Never even looked at DATE part of it. Sometimes, cut, paste, and edit is not the best way to do it... Terry M. Hoey
th3856@txmail.sbc.com
While I don't mind e-mail messages, please post all questions in these forums for the benefit of all members.
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.