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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 to find char in a field

Author  Topic 

thanksfor help
Posting Yak Master

106 Posts

Posted - 2006-06-29 : 19:32:49
Hi,

I have to select all the customer detail who's customer number is only alphabet chars and it can be of varying length . Because we have different naming conversion for different customer type.

Select * from cust
where custno is only alphabets.

thanks in advance

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2006-06-29 : 20:08:16
select ...
where custno not like '%[0-9]%'
Go to Top of Page

thanksfor help
Posting Yak Master

106 Posts

Posted - 2006-06-29 : 20:47:06
thank you, it work for me
Go to Top of Page
   

- Advertisement -