听说,在前后加上begin end ,可是我加了,也不好用。下面是我写的语句:begin
inser into tab_a values ('a','b');
inser into tab_a values ('c','c');
commit;
end ;

解决方案 »

  1.   

    报错信息:oracle enterprise manager
       ORA-06550: 第 3 行,第48列;
    pls-001103:出现符号"end-of-file" 在需要下列之一时:
      

  2.   

    我执行的位置是:Enterprise Manager Console  连接后,点左侧数据库工具下的 SQL Scratchpad
      

  3.   

    这个SQL 再PLSQL 和 SQLPlus应该都没问题的啊 。另外如果单是执行2个插入的话, 没必要加上begin end。赶问楼主用的是版本较低的数据库吧, 10.0.2的Oracle ,Enterprise Manager Console  是Web形式的。
      

  4.   

    请使用 pl/sqldeclare
    var ....begin....end;
    /
      

  5.   

    就是 9 楼的回复:
    你如果在SQL 界面,你要 定义 
    DECLARE 
    BEING
    ...
    END;
    /
      

  6.   

    begin
    inser into tab_a values ('a','b');
    inser into tab_a values ('c','c');
    commit;
    end ;
    /
      

  7.   

    直接写好了,每执行一个uid操作,就进行提交一次,如果要事务处理,就写个存贮过程。如下:
    inser into tab_a values ('a','b');
    commit;
    inser into tab_a values ('c','c');
    commit;