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 ...@@ -21,7 +21,7 @@ p_track IN BB_BASKETSTATUS.SHIPPINGNUM%TYPE
AS AS
begin 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); 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 ...@@ -75,15 +75,37 @@ begin
end case; end case;
end if; end if;
close lv_cursor; 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 DECLARE
lv_str VARCHAR2(40) := ''; lv_str VARCHAR2(40) := '';
begin begin
STATUS_SP(3, lv_str); STATUS_SP(3, lv_str);
DBMS_OUTPUT.put_line( lv_str ); DBMS_OUTPUT.put_line( lv_str );
end; end;
/ /
\ No newline at end of file
select * from (select idstatus from bb_basketstatus order by dtstage) b where rownum <= 1;
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