Programming Blog

This blog is about technical and programming questions and there solutions. I also cover programs that were asked in various interviews, it will help you to crack the coding round of various interviews

Wednesday 14 March 2018

data Insertion PLSQL

         PLSQL code to insert values in table


In this tutorial i will show you how  to insert data in a table by taking input from the user.

  declare
   number1 number;
   number2 varchar2(20);
    procedure insert_in(value in number, value1 in varchar2)
    as
    begin
   insert into test1 values(value,value1); --test1 is the table name
   end;
     
   begin
     number1 := &Enter_id;
     number2 := '&Enter_Name';
     insert_in(number1,number2);
   end;    

No comments:

Post a Comment