وظيفة MS Access Right ()
مثال
استخراج 4 أحرف من سلسلة (تبدأ من اليمين):
SELECT
Right("SQL Tutorial is cool", 4) AS ExtractString;
التعريف والاستخدام
تستخرج الدالة Right () عددًا من الأحرف من سلسلة (بدءًا من اليمين).
ملاحظة: انظر أيضًا الوظيفة اليسرى () .
بناء الجملة
Right(string, number_of_chars)
قيمه المعامل
Parameter | Description |
---|---|
string | Required. The string to extract from |
number_of_chars | Required. The number of characters to extract. If this parameter is higher than the number of characters in string, this function will return the entire string |
تفاصيل تقنية
يعمل في: | من Access 2000 |
---|
مزيد من الأمثلة
مثال
استخراج 5 أحرف من النص في عمود "CustomerName" (بدءًا من اليمين):
SELECT Right(CustomerName, 5) AS ExtractString
FROM Customers;