Which operator is used in the query for pattern matching

0 votes
Hi!!

Can someone tell me which operator is used in the query for pattern matching?
Oct 15, 2018 in Database by Sahiti
• 6,370 points
24,839 views

1 answer to this question.

0 votes

LIKE operator is used for pattern matching, and it can be used as -.

  1. % – It matches zero or more characters.

For example- select * from students where studentname like ‘a%’

_ (Underscore) – it matches exactly one character.
For example- select * from student where studentname like ‘abc_’

answered