zoukankan      html  css  js  c++  java
  • sql根据某个字段求和并显示其他字段

     select sum(duration_time) as quantity,account,user_name,dept_name,parent_dept from blade_employee_training_record_detail
             where tenant_id=#{tenantId}
            <if test="startDate !=null and startDate !='' ">
                and end_training_date >= #{startDate}
            </if>
            <if test="endDate !=null and endDate !='' ">
                and end_training_date <= #{endDate}
            </if>
            GROUP BY account,user_name,dept_name,parent_dept
    

      

  • 相关阅读:
    申请奖励加分
    6.14
    6.11
    6.10
    6.9
    6.8
    6.7
    6.6
    6.5
    6.4
  • 原文地址:https://www.cnblogs.com/xianz666/p/14862430.html
Copyright © 2011-2022 走看看