CREATE OR REPLACE PROCEDURE test(tcode in varchar)
AS
typeCode varchar(2);
status varchar(1);
BEGIN
SELECT TYPE_CODE,ASSET_STATUS INTO typeCode,status FROM cas_assets WHERE TYPE_CODE = tcode;
/*
For debugging purposes only
Run "Set ServerOutput On" statement, to get the result on to the iSql window, before calling the procedure.
*/
DBMS_OUTPUT.PUT_LINE (typeCode);
DBMS_OUTPUT.PUT_LINE (status);
END;
|