وظيفة MS Access Mid ()
مثال
استخراج الأحرف من سلسلة ، بدءًا من الموضع 3:
SELECT Mid("SQL Tutorial", 3) AS ExtractString;
التعريف والاستخدام
تستخرج الدالة Mid () بعض الأحرف من سلسلة (بدءًا من أي موضع).
بناء الجملة
Mid(string, start, length)
قيمه المعامل
Parameter | Description |
---|---|
string | Required. The string to extract from |
start | Required. The start position |
length | Optional. The number of characters to extract. If omitted, this function returns all characters from the start position |
تفاصيل تقنية
يعمل في: | من Access 2000 |
---|
مزيد من الأمثلة
مثال
استخراج الأحرف من النص في عمود (ابدأ من الموضع 4 ، واستخراج 6 أحرف):
SELECT Mid(CustomerName, 4, 6) AS ExtractString
FROM Customers;