以下是具体查询:
FROM Producers INNER JOIN
(Movie INNER JOIN MovieProducers ON Movie.MovieID=MovieProducers.MovieID)ON
Producers.ProductionID=MovieProducers.ProductionID
WHERE(MovieProducers.ProductionID IN(?))OR (-1 IN(?))
ORDER BY MovieProducers.ProductionID,Movie.YearReleased
Select *
FROM Producers INNER JOIN
(Movie INNER JOIN MovieProducers ON Movie.MovieID=MovieProducers.MovieID)ON
Producers.ProductionID=MovieProducers.ProductionID
WHERE(MovieProducers.ProductionID IN(?))OR (-1 IN(?))
ORDER BY MovieProducers.ProductionID,Movie.YearReleased