如何使用SQL Server截断字符串 - How to truncate string using SQL server

问题:

i have large string in SQL Server. 我在SQL Server中有大字符串。 I want to truncate that string to 10 or 15 character 我想将该字符串截断为10或15个字符

Original string 原始字符串

this is test string. this is test string. this is test string. this is test string.

Desired string 期望的字符串

this is test string. this is ......

解决方案:

参考: https://stackoom.com/en/question/11XDY
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章