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)
 selecting names starting with integer

Author  Topic 

akpaga
Constraint Violating Yak Guru

331 Posts

Posted - 2008-08-01 : 13:00:01
i have a field called names which is defined in varchar.
Some of the names in that field start with a number such as

3tajia warehouse,10networks etc .

How can i select the names having numbers as starting letter using a
like function.


Thanks in advance

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-08-01 : 13:07:38
select * from yourTable
where name like '[0-9]%'

_______________________________________________
Causing trouble since 1980
Blog: http://weblogs.sqlteam.com/mladenp
Speed up SSMS development: www.ssmstoolspack.com <- version 1.0 out!
Go to Top of Page
   

- Advertisement -