Results 1 to 5 of 5

Thread: stored procedures

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jun 2008
    Answers
    10

    Re: stored procedures

    oops its not workin, just another kst> how to use execute immediate? its not working for the above statements


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

    Re: stored procedures

    Here is the example

    Code:
     
    create or replace procedure test_proc as 
    string varchar2(100); 
    
    begin 
    string := ' alter table test_data add constraint test_data_pk primary key (x)'; 
    execute immediate string; 
    end; 
    /



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