Is it possible to create a temporary table in a View and drop it after select?

后端 未结 4 845
挽巷
挽巷 2020-12-28 11:44

I need to alter one view and I want to introduce 2 temporary table before the SELECT.

Is this possible? And how can I do it?

ALTER VIEW myView
AS 

S         


        
4条回答
  •  一个人的身影
    2020-12-28 12:28

    Try creating another SQL view instead of a temporary table and then referencing it in the main SQL view. In other words, a view within a view. You can then drop the first view once you are done creating the main view.

提交回复
热议问题