DEV Community

Discussion on: Like, so confused...

Collapse
 
darkain profile image
Vincent Milum Jr

A better way to think of the % character in LIKE queries: it is a "find and replace" character. Meaning, anywhere that % is found, it can be replaced by ANYTHING and still match. This also means that it works in the middle, too! So you can have "A%C" and it'll match on "ABC" and "AXC" and "A bob is really awesome C" for example.

Collapse
 
ineeader profile image
Inee Ader 🐌

THANK YOU! I hadn't gotten as advanced as those other % advanced options yet! I appreciate the clarification.