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 2005 Forums
 Transact-SQL (2005)
 Find value 9 digits in length

Author  Topic 

duhaas
Constraint Violating Yak Guru

310 Posts

Posted - 2008-04-17 : 15:19:52
Just looking for some guidance on how to find a value thats 9 digits in length

duhaas
Constraint Violating Yak Guru

310 Posts

Posted - 2008-04-17 : 15:25:56
nevermind found the LEN function
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-04-18 : 05:15:58
quote:
Originally posted by duhaas

Just looking for some guidance on how to find a value thats 9 digits in length


If the datatype is INT, then

where col>=100000000 and col<=999999999

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -