Commit cd1ef595 authored by michael lundquist's avatar michael lundquist
Browse files

JUST WORKING ON THINGS

parent 11a680eb
......@@ -21,7 +21,7 @@ p_track IN BB_BASKETSTATUS.SHIPPINGNUM%TYPE
AS
begin
INSERT INTO BB_BASKETSTATUS (IDSTATUS, IDBASKET, IDSTAGE, DTSTAGE, NOTES, SHIPPER, SHIPPINGNUM) VALUES ( BB_STATUS_SEQ.NEXTVAL, p_bask_id, 3, p_ship_date, p_notes, p_shipper, p_track);
end;
end STATUS_SHIP_SP;
/
......@@ -75,15 +75,37 @@ begin
end case;
end if;
close lv_cursor;
end;
end STATUS_SP;
/
CREATE OR REPLACE
PROCEDURE STATUS_SP
(p_bask_id IN BB_BASKETSTATUS.IDBASKET%TYPE
p_stage OUT VARCHAR(20)
)
AS
lv_idstatus bb_basketstatus.idstatus%TYPE;
lv_cursor SYS_REFCURSOR;
begin
dbms_output.put_line( 'hi' );
end STATUS_SP;
/
--p_bask_id IN BB_BASKETSTATUS.IDBASKET%TYPE
--
--lv_cursor SYS_REFCURSOR;
/*
p_stage OUT VARCHAR2(20)
OPEN lv_cursor FOR SELECT select * from (select idstatus from bb_basketstatus order by dtstage) b where rownum <= 1;
p_stage := 'hi';
close lv_cursor;
*/
DECLARE
lv_str VARCHAR2(40) := '';
begin
STATUS_SP(3, lv_str);
DBMS_OUTPUT.put_line( lv_str );
end;
/
select * from (select idstatus from bb_basketstatus order by dtstage) b where rownum <= 1;
/
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment