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