vendredi 29 avril 2016

How to create conditional query with IF(expression, value_if_true,value_if_false) in laravel?

How to create query like this ?

SELECT id,name,if(id > 17,'yes','no')as present FROM `ref`;



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire