MS Access数据库(2010)如何从查询设计器创建临时表/过程/视图 [英] MS Access database (2010) how to create temporary table/procedure/view from Query Designer

查看:346
本文介绍了MS Access数据库(2010)如何从查询设计器创建临时表/过程/视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以使用查询设计器在MS Access数据库(2010)中创建临时表/视图/存储过程吗?

Is there any way how to create temporary table/view/stored procedure in MS Access database (2010) using Query Designer?

每当我尝试执行以下操作时:

Whenever i try to execute something like this:

SELECT * INTO #temp_table
FROM (SELECT column_1, column_2 FROM table)

MS Access引发错误:

MS Access throws an error:

CREATE TABLE语句中的语法错误.

Syntax error in CREATE TABLE statement.

没有更多信息.

推荐答案

Access SQL不支持一次执行多个SQL语句,因此#temp表的概念实际上并不适用.如果您需要一个临时表,则需要

Access SQL does not support executing more than one SQL statement at a time, so the notion of a #temp table does not really apply. If you require a temporary table then you need to

  • 创建一个真实"表,
  • 使用它进行工作,然后
  • 完成后删除(删除)表.

这篇关于MS Access数据库(2010)如何从查询设计器创建临时表/过程/视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆