Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
KabirPatel
Yak Posting Veteran
54 Posts |
Posted - 2007-08-23 : 10:33:55
|
Hi,I would like to extract all records from a table that have non alpha numeric characters (such as £, $, % etc...).What is the easiest way to do this?Thanks in advance,Kabir |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-08-23 : 10:51:08
|
select * from table1 where col1 like '%[^a-z]%' E 12°55'05.25"N 56°04'39.16" |
 |
|
KabirPatel
Yak Posting Veteran
54 Posts |
Posted - 2007-08-23 : 11:02:29
|
That works fine, except that I still get records with numbers.I tried:select * from table1 where col1 like '%[^a-z]%[^0-9]%'but it didnt work. Any ideas? |
 |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-08-23 : 11:08:21
|
You wrote "alphanumeric" characters...select * from table1 where col1 like '%[^a-z0-9]%' E 12°55'05.25"N 56°04'39.16" |
 |
|
KabirPatel
Yak Posting Veteran
54 Posts |
Posted - 2007-08-23 : 11:36:01
|
Thanks |
 |
|
|
|
|