代码是没问题的。如果报错,是你最后一个括号,要改成英文状态下的括号)
select 第一列 from {表A} where 第一列 not in (select 第一列 from {表a} where 第二列='1')