MS Access database (2010) how to create temporary table/procedure/view from Query Designer

前端 未结 5 1072
暗喜
暗喜 2021-01-18 15:20

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 thi

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-18 15:33

    As far as I know there is no way to execute a SQL statement like the one in your question in the Access Query Designer, as it expects every statement to be a View/Procedure or Function definition.

    There is a general problem with you statement. When using a subselect/derived table within your FROM clause, you will have to use an alias for the returned results. This will work in SQL Server Management Studio:

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

    I recommend using SQL Server Management Studio (or a similar tool) for most of the SQL work when developing Access Data Project (ADP) applications.

提交回复
热议问题