SQL 判断 多则加省略号

SQL  判断 如果字符串超过一定长度则超过部分用省略号代替,如果字符串不足长度则显示该字符串(不须要加省略号),


如果
str=abcdefghigk

要显示5个字符

if len(str)<5 then str=str
else
str=left(str,5)
end if

就这样了!
原文地址:https://www.cnblogs.com/101rico/p/2867517.html