共用方式為


SUBSTRING (報表產生器 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"