lundi 2 octobre 2017

query with if in cake php 2

I'm trying to get data with an if in version 2

$this->Zona->find( 'list', array( 'fields' => array('nombre', 'IF(tiempo_hombre=0, tiempo_mujer, tiempo_hombre '), but I get an error

Aucun commentaire:

Enregistrer un commentaire