select t1. FriendID,t2. Nickname,t2.HeadIDfrom Friends t1 inner join Users t2 on t1.FriendID=t2.idwhere t1.userid=10000
这样试试先