Skip to content
Advertisement

Tag: oracle-sqldeveloper

Oracle SQL: ORA-01858 error on date fields

I have many tables with a date in their name. For example MY_TABLE_2021_06_01, MY_TABLE_2021_06_02, etc. I’m trying to extract the date from the table name and see if any tables are more than an year old. This is my code: The above code works fine if I don’t include the where clause where table_date < trunc(sysdate)-365. If I run the

Advertisement