SQL>在提示符下连接数据库,然后就可以敲你要编辑的东东。/会编译并执行
对于有名字的过程或者函数用execute执行

解决方案 »

  1.   

    你可以在linux下用vi编辑就可以了,写成.sql文件,然后进入sqlplus来执行
      

  2.   

    SQL> create table testable(recordnumber int,currentdate date);Table created.SQL> set serveroutput onSQL> declare
      2    2  maxrecords constand int:=100;
      3    3  i int:=1;
      4    4  begin
      5    5  for i in 1..maxrecords loop
      6  insert into testable(recordnumber,currentdate)
      7  values(i,sysdate);
      8  end loop;
      9  dbms_output_line('ksdfnkdskfah');
     10  commit;
     11  end;SQL> /
      2  maxrecords constand int:=100;
      *
    ERROR at line 2:
    ORA-06550: line 2, column 3:
    PLS-00103: Encountered the symbol "2" when expecting one of the following:
    begin function package pragma procedure subtype type use
    <an identifier> <a double-quoted delimited-identifier> form
    current cursor
    SQL> 出现上述问题,我该如何解决?请赐教。。谢谢。
      

  3.   

    sqlplus如何执行.sql文件?其命令格式是怎样的?
      

  4.   

    哦,可是如果我对ORACLE数据库操作的话,不会让我将所有的短程序都作成.sql文件吧?这样是不是对数据库操作感到费事
      

  5.   

    使用oracle的worksheet工具呀在UNIX下运行:
    oemapp worksheet
    就可以进入编辑界面了