Name already used by an existing object in VBA

前端 未结 2 1579
北荒
北荒 2021-01-28 07:36

In VBA, I am trying to use OraDynaSet object to create a temporary table and fetch some data into it before using it for another select.

strSQL = \"create table          


        
2条回答
  •  余生分开走
    2021-01-28 07:41

    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

提交回复
热议问题