>>the first 100 characters
assuming this is English/Latin alphabet you would use LEFT, however you can't use that on text columns
use substring instead
Select SUBSTRING(com_text,1,100) from blog_comment
here is an example
create table #test(wasa text)
insert #test
select 'sfsfsfffffffffffffffffff'
select left(wasa,5) from #test --fails
select substring(wasa,1,5) from #test --success
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.