文章詳情頁(yè)
mysql 如何統(tǒng)計(jì)注冊(cè)后第一次發(fā)帖的用戶
瀏覽:73日期:2022-06-18 09:51:23
問題描述
問題解答
回答1:select count(author_id) as num from (select author_id,created from posts GROUP BY author_id HAVING count(id)=1) as t where t.created BETWEEN ’2016-09-020 00:00:00’ and ’2016-09-20 23:59:59’;
回答2:嗯,這個(gè)問題....
難道不是按照時(shí)間排序就可以了嗎?
回答3:select min(issue_date) md ,user_id from table group by user_id where md = ’9.20’
相關(guān)文章:
1. mysql - 數(shù)據(jù)庫(kù)為什么需要鎖機(jī)制?2. 在MySQL中新增字段時(shí),報(bào)錯(cuò)??3. java - 安卓電視盒子取得了root權(quán)限但是不能安裝第三方應(yīng)用,請(qǐng)問該怎么辦?4. python - 模擬滑動(dòng)驗(yàn)證碼,有源碼,求解5. css3 - 請(qǐng)問一下在移動(dòng)端CSS布局布局中通常需要用到哪些元素,屬性?6. npm鏡像站全新上線7. javascript - vue-router怎么不能實(shí)現(xiàn)跳轉(zhuǎn)呢8. 老哥們求助啊9. javascript - angularjs 中數(shù)組的修改問題10. tp6表單令牌
排行榜

熱門標(biāo)簽