- fotografía
- informática (1)
- opinión
notas |
informáticaHow to avoid ORA-01722 within a select and not using PL-SQLSometimes we need to use to_number over uncertain data types. So, here is a simple solution: selectcase when UPPER(columna)=LOWER(columna) then to_number(columna) when UPPER(columna)!=LOWER(columna) then null end as converted_number from tabla_oracle
Submitted by admin on Fri, 2008/01/04 - 13:20. categories [ ]
|