Answers for "find logged in users mysql"

SQL
1

find logged in users mysql

SELECT SUBSTRING_INDEX(host, ':', 1) AS host_short,
       GROUP_CONCAT(DISTINCT user) AS users,
       COUNT(*) AS threads
FROM information_schema.processlist
GROUP BY host_short
ORDER BY COUNT(*), host_short;
Posted by: Guest on September-15-2021

Code answers related to "find logged in users mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language