You are on page 1of 1

create procedure spins(@eid int,@ename varchar(20),@esal int) as

begin
insert into emp(id,name,sal)values(@eid,@ename,@esal)
end

exec spins 1,'john',9000

create procedure spupd(@eid int,@esal int) as


begin
update emp set sal=@esal where id=@eid
end

exec spupd 1,8888

create procedure spdel(@eid int) as


begin
delete from emp where id=@eid
end

exec spdel 3

create procedure spsel(@eid int) as


begin
select * from emp where id=@eid
end

exec spsel 1

You might also like