StrReverse 函數

套用到
Microsoft 365 Access Access 2024 Access 2021 Access 2019 Access 2016

回傳一個字串,其中指定字串的字元順序被反轉。

語法

StrReverse (表達式)

所需的 表達式 參數是要反轉其字元的字串。 若 表達 式為零長度字串 (“”) ,則回傳為零長度字串。 若 表達式Null,則會發生錯誤。

範例

運算式 結果
SELECT strReverse (ProductID) 作為 ReversedID 來自 ProductSales; 從「ProductSales」表格中以反向字元順序回傳「ProductID」,並在 ReversedID 欄位顯示結果。

字串函數及其使用方法