阅读背景:

如何设置MySQL查询?

来源:互联网 

How do I set up this query? I have awards in a table. For example, a trophy may be award_id 1 in the award table. A ribbon may be award_id 2 in the award table. I then have another table, award_user, where it has the award_id and the userid of the user. So, if I wanna give the user the award_id 1, and their userid is 25, it will be in the award_user table as award_id 1 and userid 25 (which means they have that award). I want to select all of the awards the user has based off of their userid. How do I set up this query? I have awards in a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: