tc3596
Technical User
- Mar 16, 2001
- 283
- 0
- 0
CREATE PROCEDURE usp_SubAssembly()
returns(Item_No char(15), Qty decimal(13, 6));
begin
DECLARE BTUCursor CURSOR FOR
SELECT Item_No, Qty FROM MSFRCFIL_SQL
WHERE ITEM_NO Like 'M%' AND LOC = 'FG'
order by ITEM_NO asc,LOC asc;
Declare :Item char(15);
Declare :Qty decimal(13, 6);
OPEN BTUCursor;
FETCH NEXT FROM BTUCursor INTO :Item, :Qty;
select :Item, :Qty;
CLOSE BTUCursor;
end
...any thoughts? I'm new to pervasive but proficient with SQL Server
returns(Item_No char(15), Qty decimal(13, 6));
begin
DECLARE BTUCursor CURSOR FOR
SELECT Item_No, Qty FROM MSFRCFIL_SQL
WHERE ITEM_NO Like 'M%' AND LOC = 'FG'
order by ITEM_NO asc,LOC asc;
Declare :Item char(15);
Declare :Qty decimal(13, 6);
OPEN BTUCursor;
FETCH NEXT FROM BTUCursor INTO :Item, :Qty;
select :Item, :Qty;
CLOSE BTUCursor;
end
...any thoughts? I'm new to pervasive but proficient with SQL Server