I have the query and need to convert the boolean value into string in a select query
I want to replace the boolean false to 'UnConverted' and true to 'converted' in a laravel select query
$queru=DB::table('table_name')->select(DB::Raw("replace('table_name.converted',false,'Unconverted')")->get();
getting undefiened column unconverted
how to replace boolean value to string
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2UhZjEM
via IFTTT
Aucun commentaire:
Enregistrer un commentaire