您可以为
IN条件使用多个列:
SELECt s.period, s.year, s.amount FROM salaries swhere (s.year, s.period) in (select year, period from periods)
但是戈登的
not exists解决方案可能更快。

您可以为
IN条件使用多个列:
SELECt s.period, s.year, s.amount FROM salaries swhere (s.year, s.period) in (select year, period from periods)
但是戈登的
not exists解决方案可能更快。