View Single Post

   
  #4 (permalink)  
Old 02-29-2008, 06:19 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Searching/Estracting numerical data

Hugo Kornelis (hugo@perFact.REMOVETHIS.info.INVALID) writes:
> The function you would use to find where a three digit sequence in
> varchar data is located is
>
> POSINDEX ('%[0-9][0-9][0-9]%', CharData)


patindex, you mean, n'est-ce pas?



--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Reply With Quote