国产精品成人VA在线观看,亚洲日韩在线中文字幕综合,亚洲AV电影天堂男人的天堂,久久人人爽人人爽人人av东京热

News新聞

業(yè)界新聞動(dòng)態(tài)、技術(shù)前沿
Who are we?

您的位置:首頁(yè)      樂(lè)道系統(tǒng)FAQ      Thinkphp 中 distinct 的用法解析

Thinkphp 中 distinct 的用法解析

標(biāo)簽: 發(fā)布日期:2016-12-14 00:00:00 286
【CLI】利用Curl下載文件實(shí)時(shí)進(jìn)度條顯示的實(shí)現(xiàn)

TP中distinct()的用處主要是去除重復(fù)的值

在Thinkphp手冊(cè)中也詳細(xì)說(shuō)明了(鏈接:http://document.thinkphp.cn/manual_3_2.html#distinct)

下面是我的個(gè)人例子:

顯示的是這樣的

在加入distinct的話:

顯示結(jié)果為

下面為貼出來(lái)的代碼

$offernum = M('offer')->distinct(true)->where('order_id='.$order_id)->field('user_id,number')->select();
dump($offernum);