Oracle SQL Where clause to find date records older than 30 days
问题 I want to find records in a (Oracle SQL) table using the creation date field where records are older than 30 days. It would be nice to find records using a operators like > but if anyone can suggest quick SQL where clause statement to find records older than 30 days that would be nice. Please suggest Oracle syntax as that is what I am using. 回答1: Use: SELECT * FROM YOUR_TABLE WHERE creation_date <= TRUNC(SYSDATE) - 30 SYSDATE returns the date & time; TRUNC resets the date to being as of