使用 Access 2007 的查询问题
我的查询如下所示:
SELECT parent2.subid AS parent2id, parent2.sub AS parent2desc,
key.subid AS ID, parent1.subid AS parentid,
parent1.sub AS parentdesc, key.sub AS key
FROM (table1 AS key LEFT JOIN table1 AS parent1 ON key.parent_id=parent1.subid)
LEFT JOIN table1 AS parent2
ON parent1.parent_id=parent2.subid into Query_table
此查询在没有 into Query_table
的情况下在 dB 上运行时工作正常,但我想动态创建表并执行一些操作。
在上面的查询中我收到以下错误:
“语法错误(缺少运算符) 查询表达式 'parent1.parent_id=parent2.subid 进入 查询_表'"
知道为什么吗?
My query looks like this :
SELECT parent2.subid AS parent2id, parent2.sub AS parent2desc,
key.subid AS ID, parent1.subid AS parentid,
parent1.sub AS parentdesc, key.sub AS key
FROM (table1 AS key LEFT JOIN table1 AS parent1 ON key.parent_id=parent1.subid)
LEFT JOIN table1 AS parent2
ON parent1.parent_id=parent2.subid into Query_table
This query when run on the dB without the into Query_table
works fine, but I want to create the table dynamically and perform some operations.
In the above query I get the following error:
"Syntax error (missing operator) in
query expression
'parent1.parent_id=parent2.subid into
Query_tabl'"
Any idea why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
INTO
子句位于选择列表和FROM
子句之间。 IEThe
INTO
clause comes between the select list and theFROM
clause. I.e.