WHERE内で他のテーブルを参照してDELETEUSINGを使ってDELETE FROM player p USING team t WHERE p.team_id = t.team_id AND t.team_name = 'AC Milan' INを使って同じ結果を得るにはDELETE FROM player WHERE team_id IN ( SELECT team_id FROM team WHERE team_name = 'AC Milan' ) |
|
WHERE内で他のテーブルを参照してDELETEUSINGを使ってDELETE FROM player p USING team t WHERE p.team_id = t.team_id AND t.team_name = 'AC Milan' INを使って同じ結果を得るにはDELETE FROM player WHERE team_id IN ( SELECT team_id FROM team WHERE team_name = 'AC Milan' ) |
|