Results 1 to 2 of 2

Thread: Execute .sql file from procedure

  1. #1
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Execute .sql file from procedure

    How to execute a .sql file from a procduer in oracle ?

    Sireesha

  2. #2
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Re: Execute .sql file from procedure

    >>how to execute a .sql file from a procduer in oracle ?

    sql> ed test.sql

    delete from emp where empno=7788;

    create or replace procedure test_pr as
    begin
    @test.sql;
    commit;
    end;
    /

    sql> execute test_pr;
    pl/sql procedure successfully completed.

    Sql> select * from emp
    2 where empno =7788;
    no rows selected


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact