我在 MS Access 数据库中有一些这样的名字(在 ColdFusion 下):
old_id, old_name
当我尝试选择它们时,出现以下错误:
[ODBC Microsoft Access Driver] Too few parameters. Expected 1.
我的查询是:
select TOP 10 id, old_id, name, old_name from tablename WHERE id IS NOT NULL
试图将我的查询中的下划线转义为:
select TOP 10 [id],[old_id],[name],[old_name] from [tablename] WHERE [id] IS NOT NULL
甚至:
(select TOP 10 [id],[old_id],[name],[old_name] from [tablename] WHERE [id] IS NOT NULL)
仍然是同样的错误。任何的想法?