2
Je veux demander si je dois faire cette requête dans mon applicationde code, la sélection des données à l'aide personnalisée enregistrement actif
select qty, type from tItem where qty=0 and (type=1 or price=100)
Comment puis-je faire en utilisant enregistrement actif dans CodeIgniter?
parce que si je fais
$this->db->where('qty','0');
$this->db->where('type','1');
$this->db->or_where('price','100');
la requête serait comme
select qty, type from tItem where qty=0 and type=1 or price=100
et ce n'est pas ce que je voulais