在準備好的聲明中,我必須從'通知玩家'表中獲取僅限於當前日期的'入'的玩家數'在MySQL中。我用 'CURDATE()/ CURRENT_DATE()' 查詢功能,而且計數始終返回 '0'如何在'當前日期'狀態中獲得某個列的計數
查詢:
select count(1) as count
from notifyplayers
where lower(availability) = 'in' and notifydate = curdate();
請找到表屏幕截圖:
有人可以幫忙找出查詢中的問題。
我已經使用了第一查詢和它工作正常。但是第二個查詢失敗,拋出錯誤:0 14:21:17 \t select count(1)as countplay from notifyplayers where lower(availability)='in'and notifydate> = curdate()and notifydate
soccerway