Name already used by an existing object in VBA

本秂侑毒 提交于 2019-12-02 08:12:26

If you're just using that temporary table for a single follow-on query, then it might be easier just to use an "inline view":

select t.coupon_upc, t.division from
   (select lca.coupon_upc,lca.division from  lca where lca.campaign_id = campaign_id
     MINUS 
    select mcr.coupon_upc,mcr.division from  mcr where mcr.campaign_id = campaign_id) t
 where {clauses here...}

Tim

The table already exists. You are not creating a temporary table but a standard table: it will remain in the database after your script has ended. If you have already run this script and you have not dropped the table, the following executions will fail.

In Oracle Global temporary table are persistent objects that contain temporary data. In most cases if you need to use a temporary table regularly (because it is part of a recurrent process), you would create the table once only.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!