重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

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://cqcxhl.com/article/pdgeeh.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP