mercredi 4 mars 2020

How to escape % symbol in Where statement

How do i escape the '%' in the sense that i want to remove any statements with the '%' symbol in it.

The following code is an example ->where('dst', 'not like', '%#%') in Laravel Eloquent, where the strings matching anything with a '#' is removed.

I want to do the same for '%' where any strings with % in the string like %4214231%423 is removed from the query result.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/39vWQNe
via IFTTT

Aucun commentaire:

Enregistrer un commentaire