Skip to content · ⁨الانتقال إلى المحتوى⁩
English

Matching text patterns with LIKE

= only matches text exactly. To match a pattern, use LIKE with two wildcards:

  • % stands for any run of characters (including none)
  • _ stands for exactly one character

'S%' means "starts with S". '%a%' means "contains an a". '_o%' means "an o as the second letter".

العربية

مطابقة أنماط النص باستخدام LIKE

= يطابق النص بالضبط. لمطابقة نمط، استخدم LIKE مع رمزين غير محددين:

  • % يمثل أي سلسلة من الأحرف (بما في ذلك الفارغة)
  • _ يمثل حرفًا واحدًا بالضبط
SELECT name FROM student WHERE name LIKE 'S%';

'S%' تعني "يبدأ بحرف S". '%a%' تعني "يحتوي على a". '_o%' تعني "o كحرف ثاني".

Handout · ⁨ورقة عمل⁩

Log in or create account · ⁨تسجيل الدخول أو إنشاء حساب⁩

IGCSE, A-Level & AP