REVERSE(欄位) 反轉
CHARINDEX(篩選字符,欄位,[start])
例:CHARINDEX('/',ProImage,13) 從13位查詢/所在索引
SUBSTRING(欄位,start,end)
例:SUBSTRING(ProImage,0,CHARINDEX('/',ProImage,13)+1) 獲取ProImage欄位中從第一位到/所在位置(+1是因為索引從01開始)
REPLACE(欄位,字符,替換字符)
例:REPLACE(ProImage,SUBSTRING(ProImage,0,CHARINDEX('/',ProImage,13)+1),'')將從ProImage欄位獲取的字符替換成空
标签:字符,基礎,欄位,ProImage,SqlServer,13,SUBSTRING,CHARINDEX From: https://www.cnblogs.com/yyjspace/p/17176140.html