文章詳情頁
sql語句 - mysql中關(guān)聯(lián)表查詢問題
瀏覽:125日期:2022-06-20 15:52:47
問題描述
問題解答
回答1:select a.*,count(b.user_id) as stars from a,b where a.user_id = b.user_id group by user_id order by stars desc;
回答2:你這個用來獲取用戶列表是沒問題的,我是要獲取特定用戶的排名。也就是怎么實現(xiàn)中間哪個select count功能。
相關(guān)文章:
1. javascript - 手機點擊input時,button會被頂上去?求解決?。?!2. python - django 按日歸檔統(tǒng)計訂單求解3. 請教一個python字符串處理的問題?4. 百度地圖api - Android 百度地圖 集成了定位,導(dǎo)航 相互的jar包有沖突?5. javascript - vue-mint UI - icon在哪里有文檔?6. HTML5禁止img預(yù)覽該怎么解決?7. javascript - vscode alt+shift+f 格式化js代碼,通不過eslint的代碼風(fēng)格檢查怎么辦。。。8. html5 - 表單無法屏蔽自動填充 autocomplete=off9. html - 請教一個前端css問題。10. 網(wǎng)頁爬蟲 - python爬蟲用BeautifulSoup爬取<s>元素并寫入字典,但某些div下沒有這一元素,導(dǎo)致自動寫入下一條,如何解決?
排行榜

熱門標(biāo)簽