0

How do you escape a question mark character in a string on the MySQL CLI?

There are many methods to avoid having to escape characters, but from an ease-of-use perspective I would quite like to do some SELECT statements containing LIKE queries, some of which contain question marks and the usual \? does not work.

Metalshark
  • 527
  • 1
  • 5
  • 16

1 Answers1

0

LIKE doesn't use ?. LIKE uses % and _.

Ignacio Vazquez-Abrams
  • 45,939
  • 6
  • 79
  • 84