how to use replace in laravel query
select REPLACE(description,'"',"'") from brewery
it works great in phpmyadmin, but when i use in laravel query it occurs error,
DB::select('select REPLACE(description,'"',"'") from brewery ');
FatalErrorException in BreweryController.php line 121:
syntax error, unexpected '"',"' (T_CONSTANT_ENCAPSED_STRING)
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1rjDDHU
via IFTTT
Aucun commentaire:
Enregistrer un commentaire