" SELECT * FROM球员INNER JOIN" 。 $ v [" name"]。 " ON players.team_id =" 。 $ v [" name"]。 " .team_id&#34 ;;
抱歉英语不好我想+两张桌子?
答案 0 :(得分:0)
您可以将数据存储在单个表格中,然后像这样获取names
和score/whatever_it_is
SELECT name, score FROM players UNION SELECT "Total" AS name, SUM(score) FROM players