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`;



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1Till0a
via IFTTT

Aucun commentaire:

Enregistrer un commentaire