Getting Error - ORA-01858: a non-numeric character was found where a numeric was expected

前端 未结 4 1646
野的像风
野的像风 2020-12-01 23:58

I am getting the error in the below sql:

ORA-01858: a non-numeric character was found where a numeric was expected

SELEC         


        
4条回答
  •  心在旅途
    2020-12-02 00:40

    This error can come not only because of the Date conversions

    This error can come when we try to pass date whereas varchar is expected
    or
    when we try to pass varchar whereas date is expected.

    Use to_char(sysdate,'YYYY-MM-DD') when varchar is expected

提交回复
热议问题