开发者社区 问答 正文

mysql查询优化,谁能帮我优化查询啊?

已解决

SELECT mobileuserid,caozuoleixing,caozuozhi,xiguanzhi FROM 表A WHERE xiguanzhi>2
GROUP BY mobileuserid,caozuoleixing,caozuozhi,xiguanzhi
ORDER BY mobileuserid,caozuoleixing,xiguanzhi DESC LIMIT 3000

展开
收起
WM云建站 2016-02-15 10:21:21 2531 分享 版权
1 条回答
写回答
取消 提交回答
  • 阿里云论坛版主,QQ 1978638808
    采纳回答

    SELECT distinct mobileuserid,caozuoleixing,caozuozhi,xiguanzhi FROM 表A WHERE xiguanzhi>2
    ORDER BY mobileuserid,caozuoleixing,xiguanzhi DESC LIMIT 3000

    2019-07-17 18:28:42
    赞同 展开评论