Вопрос по oracle, numbers, varchar – оракул варчар к номеру
Как конвертировать значение oracle varchar в число?
например
table - exception
exception_value 555 where exception_value is a varchar type
Я хотел бы проверить значение столбца exception_value
select * from exception where exception_value = 105 instead of
select * from exception where exception_value = '105'
5
ответов
select * from dual where (105 = to_number('105'))
= & GT; поставляет один фиктивный ряд
select * from dual where (10 = to_number('105'))
= & GT; пустой результат
select * from dual where ('105' = to_char(105))
= & GT; поставляет один фиктивный ряд
select * from dual where ('105' = to_char(10))
= & GT; пустой результат