SUBSTRING (Report Builder 1.0)
返回字符串中的子字符串。
语法
SUBSTRING(string, start, length)
string |
指定要从中提取子字符串的字符串。 |
start |
指定字符串中的开始位置。 |
length |
指定字符数。 |
示例
公式 |
结果 |
---|---|
SUBSTRING(Address Line, 5, 20) |
对于 Address Line 字段的每个实例,返回的子字符串从该字段的第五个字符开始,在第 20 个字符结束。例如,下列字符串: "#9900 2700 Production Way" 返回以下子字符串: "0 2700 Production Wa"。 |
SUBSTRING("lavender", 3, 5) |
"vende" |