Skip to content
Advertisement

Unable to Convert to Date

I am trying to return just the date from a datetime field When I run the Select Claus with just the first line, it work as expected. But when I add the second line, I receive From keyword not found error.

ORA-00923: FROM keyword not found where expected

Advertisement

Answer

In Oracle, DATE is a reserved word and you cannot use it as an unquoted identifier. Either change your query to use a different identifier:

Or quote the identifier:

db<>fiddle here

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement