11111111111
create table employee( name varchar2(20),id number,location varchar2(20));
insert into employee values('uma',2,'guntur');
insert into employee values('sumanth',1,'penumaka');
insert into employee values('semya',3,'hyd');
create or replace procedure empl(nam employee.name%type,i_d employee.id%type,loc
employee.location%type)
is
begin
insert into employee values(nam,i_d,loc);
end empl;
Procedure created
begin
empl('pavani',4,'vjw');
end;
/
PL/SQL procedure successfully completed.
SQL> select * from employee;
NAME ID LOCATION
-------------------- ---------- --------------------
uma 2 guntur
sumanth 1 penumaka
semya 3 hyd
pavani 4 vjw
2222222222222222
create or replace function sal_hike(emp_id emp.employee_id%type)
return number
is
salary emp.salary%type;
begin
update emp set salary = (salary+(0.15*salary));
return salary;
end;
begin
dbms_output.put_line(sal_hike(101));
end;