Two PLSQL statements with begin and end, run fine separately but not together?

前端 未结 3 1482
一向
一向 2020-12-18 02:13

Just wondering if anyone can help with this, I have two PLSQL statements for altering tables (adding extra fields) and they are as follows:

-- Make GC_NAB fi         


        
3条回答
  •  一向
    一向 (楼主)
    2020-12-18 02:58

    one can achieve in two ways

    1) run the two blocks separately in pl/sql file.

    2) in main block you can run two sbu-blocks in this way :

    begin  // main block
          begin 
           .....   [pl/sql commands]
           ......
          end
          begin   
          .......  [pl/sql commands]
          .......
          end
    end // main ends
    

提交回复
热议问题