وظيفة MS Access Left ()
مثال
استخراج 3 أحرف من سلسلة (تبدأ من اليسار):
SELECT Left("SQL Tutorial", 3) AS ExtractString;
التعريف والاستخدام
تستخرج الدالة Left () عددًا من الأحرف من سلسلة (بدءًا من اليسار).
ملاحظة: انظر أيضًا الوظيفة اليمنى () .
بناء الجملة
Left(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 Left(CustomerName, 5) AS ExtractString
FROM Customers;