Global Temp Tables - SQL Server vs Oracle

后端 未结 4 1516
离开以前
离开以前 2021-01-13 08:22

I am using Oracle 11g Global Temporary Tables as I need a solution where I can add rows to a temporary table for a join, and I want only the rows added to the temp table for

4条回答
  •  [愿得一人]
    2021-01-13 08:59

    If you create a Global Temp Table(##table) in SQL Server it will 'live' and be accessible via other sessions until that session is closed. In addition, you will not be able to create that Global Temp Table under the same name for a different session until the original session closes, you'll get that the table already exists. For your purpose a Global Temp Table wouldn't be a good solution.

    A Local Temp Table (#table) would be much better and will achieve what you are looking to do.

    Hope this helps

提交回复
热议问题