StrReverse 函數

Applies To
Access for Microsoft 365 Access 2024 Access 2021 Access 2019 Access 2016

傳回將指定字串的字元順序顛倒的字串。

語法

StrReverse (運算式)

必要的 運算式 引數是要反轉其字元的字串。 如果 expression 是長度為零的字串 (“”) ,則會傳回長度為零的字串。 如果 運算式 為 Null,則會發生錯誤。

範例

運算式 結果
SELECT strReverse (ProductID) AS ReversedID FROM ProductSales; 以相反的字元順序從資料表 “ProductSales” 傳回 “ProductID”,並在 ReversedID 資料行中顯示結果。

字串函數及其使用方法