I now have two tables:
One is the association list (list) and the user table (user)
List table fields
list_id(协会id) , list_name(协会名称)
user user table
user_id(用户id),list_id(所属协会), username(用户名)
How to achieve this:
Related query to obtain the total number of members under each association
For example:
{"list_name":"AAA协会","user_count":20},
{"list_name":"BBB协会","user_count":211}
...
How to connect?
Read more documentation.