人人人妻人人人妻人人人,99精品国产综合久久久久五月天 ,欧美白人最猛性XXXXX,日韩AV无码免费播放

News新聞

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

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

Thinkphp 中 distinct 的用法解析

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

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

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

下面是我的個人例子:

顯示的是這樣的

在加入distinct的話:

顯示結(jié)果為

下面為貼出來的代碼

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