<div dir="ltr"><div><div><div><div><div><div>hello <br><br></div>i write this in my sub<br><br>my $count_DossiersClos = database('asav')->quick_count(<br> 'DossierClos',<br> {DateCloture =>{ 'lt' => "2013-12-01 00:00:01"},DateCloture => { 'gt' => "2013-11-01 00:00:01"}});<br>
return $count_DossiersClos;<br><br></div>but the query just use the last Date cloture and in mysql.log i read <br><br></div>140212 17:05:21 18 Connect admin@localhost on asav<br> 18 Query set autocommit=1<br>
18 Query SELECT COUNT(*) FROM `DossierClos` WHERE `DateCloture` > '2013-11-01 00:00:01'<br><br><span style class="">ingenuous i hope </span>:<br>SELECT COUNT(*) FROM `DossierClos` WHERE `DateCloture` > '2013-11-01 00:00:01' and `DateCloture` < '2013-12-01 00:00:01'<br>
<br></div>does it better to write the query ? <br><br></div>regards <br></div>T.<br></div>