通过 openquery 从 MySQL 数据库中提取一些信息:
select *
from foo
where bar not in (select bar from foobar)
现在,如果我用硬连线数字替换子查询,它工作正常,但我有近 1000 个数字需要排除。我无法弄清楚这一点;这两个查询本身运行良好。该错误总是告诉我“从 foobar 选择栏”中有语法错误
谢谢
编辑:
这是错误:
[MySQL][ODBC 3.51 Driver][mysqld-4.0.20-log]You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select bar from foobar)' at line 3".