如何使用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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章