1、distinct
成都創(chuàng)新互聯(lián)公司2013年開創(chuàng)至今,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項目網(wǎng)站建設(shè)、網(wǎng)站設(shè)計網(wǎng)站策劃,項目實施與項目整合能力。我們以讓每一個夢想脫穎而出為使命,1280元白銀做網(wǎng)站,已為上家服務(wù),為白銀各地企業(yè)和個人服務(wù),聯(lián)系電話: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 -- 去重查詢表中數(shù)據(jù)
select DISTINCT(user_id) from user_info where children_merchant_id='kuaiditong';
2、group by
select count(1) from Course group by CName
文檔:MySQL去重查詢表中數(shù)據(jù).note
鏈接:http://note.youdao.com/noteshare?id=581440d92396bab4de6568d1a69baa58&sub=9B8DAB091CC5490BA5F8FA29557CCD67