我想知道在一段時間內下雨(雨> 0.1)多少天諮詢mysql。Mysql計算天表的下雨天
我使用此代碼,但它給我回所有的日子,有和無雨
$result = mysqli_query($con,"SELECT City, count(Rain > '0.1') as Total FROM Meteo2 where Data BETWEEN '" . split($_POST["date6"]) ."' AND '" . split($_POST["date7"]) ."' group by City");
TKS
分組雨這麼快+1 ..... – 2014-09-12 12:59:41
我明白了!它解決了! thky! – 2014-09-12 13:16:19