我有两张桌子,Members
和GroupMembers
。我 FullName fromMembers
和MemberID
from GroupMembers
,但我不知道如何修改这个查询来实现:
SELECT FullName
FROM Members
INNER JOIN GroupMembers ON Members.ID=GroupMembers.MemberID
WHERE GroupMembers.GroupID = 'foo'
它给了,Members.FullName
但我也需要GroupMembers.ID
Members.ID=GroupMembers.MemberID