mysql - Using LIKE when searching for "%" -


this question has answer here:

i want check whether column starts "%". if search character code below doesn't work when searching "%".

select * `table` `column` 'anothercharacter%' 

thanks.

you can try this

select * `table` column 'anothercharacter%[%]%' 

or

where column '%\%%' escape '\' 

Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -