Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Is_number () like function
Hi,
I was wondering (and did not found in the documentation), if PL/SQL has a function that would work like that:
select * from myTable where is_number(myfield) that would give me all the rows where myfield is a varchar2 describing a valid number.
The only way I found was to try to catch the Not A Number exception when converting with the to_number() function, nut i believe there is a more elegant (and efficient) way to deal with it.
Any help will be welcome
Thanx
Christophe Renard Received on Tue Jul 21 1998 - 05:07:09 CDT
![]() |
![]() |