You are here: Re: how to identify special characters with a single case statement « MsSQL Server « IT news, forums, messages
Re: how to identify special characters with a single case statement

Posted by Plamen Ratchev on 05/08/07 19:07

You can negate your logic here and instead of looking to catch all invalid
characters, look for all characters excluding the set of digit characters.
It will be something like this:

INSERT INTO TableA
(Col1)
SELECT
CASE WHEN Col1 LIKE '%[^0-9]%'
THEN 999999
ELSE Col1 END
FROM TableB;


HTH,

Plamen Ratchev
http://www.SQLStudio.com

 

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

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