Mid() 會傳回輸入字串的部分,從第二個引數 'start' 定義的字元位置開始,並傳回第三個引數 'count' 定義的字元數目。如省略 'count',則會傳回剩餘的輸入字串。如省略 'count',則會傳回剩餘的輸入字串。 輸入字串中的第一個字元編號為 1。
語法:
Mid(text, start[, count])
傳回的資料類型: 字串
引數:
T1: Load *, mid(Text,Start) as Mid1, mid(Text,Start,Count) as Mid2; Load * inline [ Text, Start, Count 'abcdef', 3, 2 'abcdef', 2, 3 '210714', 3, 2 '210714', 2, 3 ];
結果
若您發現此頁面或其內容有任何問題——錯字、遺漏步驟或技術錯誤——請告知我們可以如何改善!