mysql去重查询表中数据

1、distinct

成都创新互联公司2013年开创至今,是专业互联网技术服务公司,拥有项目网站建设、网站设计网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元白银做网站,已为上家服务,为白银各地企业和个人服务,联系电话:18980820575

select count(distinct CName) from teble
select count(CName) from (select distinct CName from Course) as temp
SELECT  DISTINCT text_zhcn FROM dms_menuconfig  -- 去重查询表中数据
select DISTINCT(user_id) from user_info where children_merchant_id='kuaiditong';

2、group by

select count(1) from Course group by CName

文档:MySQL去重查询表中数据.note
链接:http://note.youdao.com/noteshare?id=581440d92396bab4de6568d1a69baa58&sub=9B8DAB091CC5490BA5F8FA29557CCD67


当前名称:mysql去重查询表中数据
本文路径:http://lszwz.com/article/pdgeeh.html

其他资讯

售后响应及时

7×24小时客服热线

数据备份

更安全、更高效、更稳定

价格公道精准

项目经理精准报价不弄虚作假

合作无风险

重合同讲信誉,无效全额退款