MySQL代码错误

MySQL代码错误,mysql,sql,Mysql,Sql,我将如何为MySQL重写这个 select id, name From student Except Select id, name from student natural join takes where year < 2009 不要使用except,而是使用for MySQL select id, name from student where id not in ( select id from student natural join takes where

我将如何为MySQL重写这个

select id, name
From student
Except
Select id, name
from student natural join takes
where year < 2009
不要使用except,而是使用for MySQL

select id, name
from student
where id not in (
   select id
   from student natural join takes
   where year < 2009)

我更想问的是,我该如何为MySQL重写这篇文章呢?对不起,我的措辞很抱歉。我没有直接回答这个问题,因为第一个答案似乎涵盖了这一点,但自然连接可能是制造定时炸弹的好方法;所需要做的只是将一列添加到另一个表中已经存在且不应用于联接的表中,或者将一列从一个表或另一个表中删除以使联接有意义。最隐秘的部分是,这些更改不会中断/使您的查询无效,只会损坏结果,可能会导致一系列没有警告的问题。