ORA-01722 invalid number错误
执行select 查询时发生此错误,查询语句如下:
select stationName ,createdate from info t where t.stationId = 90260
上网查此原因如是:ORACLE将where t.stationId = 90260解释为where to_number(t.stationId)=90260
,oracle在查询数据时会先将数据的stationId 字段执行to_number
当stationId 的值都为数值的时候未发生些问题,当有其它非数值型字符时会发生此错误