ORA-01843 not a valid month- Comparing Dates

前端 未结 9 2226
南方客
南方客 2020-12-15 03:49

I have a problem when try to select data from a table filtering by date.

For example:

SELECT * FROM MYTABLE WHERE MYTABLE.DATEIN = \'23         


        
9条回答
  •  伪装坚强ぢ
    2020-12-15 04:49

    If the source date contains minutes and seconds part, your date comparison will fail. you need to convert source date to the required format using to_char and the target date also.

提交回复
热议问题