SELECT
W.APPID,
U.USERNAME USERNAMES
FROM
umuser U
JOIN wfworkitemn W ON W.OWNERID = U.USERID
where
U.PARENTIDS LIKE '%OR1200000702%'
GROUP BY
U.USERNAME,
W.APPID
ORDER BY NULL
此SQL的W表出現Using temporary,U.USERNAME和W.APPID均已添加索引,請教下大佬們怎么優化解決。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/263956.html
標籤:MySQL
上一篇:mysql索引
下一篇:求一條SQL陳述句
