mongodb distinct 的使用,以及如何計算distinct後的count值

db.runCommand({"distinct":"accesslog","key":"deviceId","query":{"time":/^2011-12-15/}}).values.length(); 至關於sql: select count(deviceId) from (select distinct deviceId from accesslog where time like "2
相關文章
相關標籤/搜索