常用SQL汇总(Java开发)
文章目录
SQL去重统计:
select count(t.mng_dept_id),count(t.mng_dept_name),count(distinct t.mng_root_dept_id),count(distinct t.mng_root_dept_name) from zp_mng_root_name t
SQL去重统计:
select count(t.mng_dept_id),count(t.mng_dept_name),count(distinct t.mng_root_dept_id),count(distinct t.mng_root_dept_name) from zp_mng_root_name t
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论