Bilgiler > Using IF statement in select query
Using IF statement in select query
select
CAST(
CASE
WHEN len(baslik)>50
THEN substring(baslik,0,60)+'...'
ELSE baslik
END AS varchar(100)) as baslik
from bilgi
https://stackoverflow.com/ques...n-an-sql-select
***