Interviews4 answers
Write a simple stored procedure code with Parameter?
4 Answers
CREATE PROC PROC_Name
(
@EMPID BIGINT,
@EMPNAME VARCHAR(50)
)
AS
BEGIN
INSERT INTO EMPLOYEE(EMPID,EMPNAME)
VALUES (@EMPID,@EMPNAME)
END
Ashish SrivastavaPosted Dec 26, 2017, 1:48 AM EST
create or replace procedure projprssample
(rs out sys_refcursor)
is
begin
open rs for
select * from users where rownu<=10;
end;
Shalu ShaliniPosted Mar 31, 2017, 10:28 PM EDT
create or replace procedure projprssample
(rs out sys_refcursor)
is
begin
open rs for
select * from users where rownu<=10;
end;
Shalu ShaliniPosted Mar 31, 2017, 10:27 PM EDT
Create Procedure GetCustomerInfoById
(
@CustomerId INT
)
As
BEGIN
SELECT * FROM Customer where CustomerId=@CustomerId
END
Rahul ChavanPosted Apr 7, 2016, 6:18 PM EDT


