You are here: Re: selecting only numeric data from a string « MsSQL Server « IT news, forums, messages
Re: selecting only numeric data from a string

Posted by Robert Klemme on 01/12/06 19:54

tgru wrote:
> The issue there is that the numbers are of varying lengths, and it
> might not always just be a single quote at the end. So, I was hoping
> to be able to just extract the numerics without having to deal with
> positions and length of the numeric portion. I.e. why can't I just
> grab alpha or numeric or non alpha numeric from the whole string??
> :-) Seems like that should be easier to do than it is...

You can for example use charindex to find the terminating single quote.

You cal also install Oracle 10 which supports regular expressions.
Honestly, is this stored in the DB? If so, I'd try to make it two columns
if possible.

HTH

robert

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация