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
 General SQL Server Forums
 New to SQL Server Programming
 Count amount of characters in a column

Author  Topic 

Eagle_f90
Constraint Violating Yak Guru

424 Posts

Posted - 2012-11-02 : 11:26:10
I am trying to write a select statment that that only returns results where ColA has less then 9 characters in it. The column is a varchar(80). What is the best way to construct the WHERE clause for this?

--
If I get used to envying others...
Those things about my self I pride will slowly fade away.
-Stellvia

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2012-11-02 : 11:40:04
WHERE LEN(ColA) <9

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page
   

- Advertisement -