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)
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire