Re: isnumber
From: Vishal Parkar (REMOVE_THIS_vgparkar_at_yahoo.co.in)
Date: 04/23/04
- Previous message: Dave Lugo: "Re: Help with Query"
- In reply to: Mehran: "isnumber"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 23 Apr 2004 10:20:31 +0530
hi mehran,
if you the unwanted characters that need to be removed from the string are
known then you can make use of "replace" function.
ex:
drop table multi_nos
CREATE TABLE multi_nos ( b varchar(50))
insert into multi_nos values ('++123-456-675')
insert into multi_nos values ('++12-456-75')
In this example i know that if i remove + and - then i will get the pure
numeric value, so i can write a query as:
select replace(replace(b, '-',''),'+','') 'b' from multi_nos
--Vishal
- Previous message: Dave Lugo: "Re: Help with Query"
- In reply to: Mehran: "isnumber"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
- Re: Stripping out unwanted characters
... Use regular expression to remove unwanted characters and then send the ... string
to database. ... characters from a string. ... hoep this will help
you... ... (microsoft.public.dotnet.framework.aspnet) - String filtering
... I've been puzzling for a little bit over a good way to filter out ... unwanted
characters from a string. ... David Trudgett ... (comp.lang.ada) - Re: String[] to String
... See java.util.Arrays.toStringand .deepToString() ... You get a load of
unwanted characters in your string if you do that. ... (comp.lang.java.programmer) - Re: stripping out ASCII chars using regexp?
... > I am trying to get rid of the ASCII chars from the end of a string
... Fixing this by deleting the unwanted characters is nothing but band aid. ...
(comp.lang.perl.misc)