文章詳情頁
sql語句 - mysql中關(guān)聯(lián)表查詢問題
瀏覽:114日期: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:你這個用來獲取用戶列表是沒問題的,我是要獲取特定用戶的排名。也就是怎么實(shí)現(xiàn)中間哪個select count功能。
相關(guān)文章:
1. python - TypeError: tryMsgcode() takes exactly 2 arguments (0 given)2. 環(huán)境搭建 - anaconda 創(chuàng)建python2.7環(huán)境中打開編譯器確是3.6版本3. extra沒有加載出來4. linux - Ubuntu下編譯Vim8(+python)無數(shù)次編譯失敗5. html5 - H5頁面喚起APP導(dǎo)航6. javascript - 彈出一個子窗口,操作之后關(guān)閉,主窗口會得到相應(yīng)的響應(yīng),例如網(wǎng)站的某些登錄界面,django后臺的管理等,這是怎么實(shí)現(xiàn)的呢?7. 求救一下,用新版的phpstudy,數(shù)據(jù)庫過段時(shí)間會消失是什么情況?8. mysql replace 死鎖9. list - python 求助10. python - 數(shù)據(jù)與循環(huán)次數(shù)對應(yīng)不上
排行榜

熱門標(biāo)簽