查询 1
$query = "SELECT match_id, match_date, home_team,
home_score, away_score, away_team, rating
FROM premier_league2
WHERE (home_team ='" .$home_team ."'
OR away_team ='" .$home_team ."')
AND postponed !=1
AND league =1
AND match_date <'" . $current_date ."'
AND match_date >'" . $newseason ."'
ORDER BY match_date DESC LIMIT 1";
结果
676 2013-05-19 Newcastle Utd 0 1 Arsenal -14
查询 2
SELECT home_per, draw_per, away_per FROM rating WHERE rating = -14;
结果
28.30 26.50 45.10
现在我正在尝试加入这些查询,例如
676 2013-05-19 Newcastle Utd 0 1 Arsenal -14 28.30 26.50 45.10
评分 (-14) 在这两个表中都很常见,寻求您的大力帮助。