LoginLog::where(‘logout_time’, null)
->count(‘DISTINCT user_id’);
解析后的sql:
SELECT COUNT(DISTINCT user_id) AS tp_count FROM login_log WHERE logout_time IS NULL
(tp5.1)
LoginLog::where(‘logout_time’, null)
->count(‘DISTINCT user_id’);
解析后的sql:
SELECT COUNT(DISTINCT user_id) AS tp_count FROM login_log WHERE logout_time IS NULL
(tp5.1)