1
也許你能幫助我:MYSQL要求
如果有表1:佔
user_id account_id
39 3799207
39 80286966
40 3789458
...
表2:用戶
id client_id master_id master_account_id active
1 43 39 3799207 1
2 43 39 80286966 1
3 44 39 80286966 1
4 45 39 80286966 1
...
使用這個請求:
'SELECT account_id FROM accounts WHERE user_id = "39"';
我能得到這個表:
Account
3799207
80286966
我怎樣才能得到這個表:
Account Subscribers Count
3799207 43 1
80286966 43,44,45... 3
謝謝!
感謝!!!!!!!!!! – user889349