|
|
Archives of the TeradataForum
Message Posted: Fri, 24 Jan 2014 @ 12:23:14 GMT
Subj: | | Re: Activity count of select statement in Stored procedure |
|
From: | | Frydryszak, Marek |
I can't repeat such issue:
REPLACE PROCEDURE samples.sp_test (OUT par1 INTEGER, OUT par2 INTEGER) BEGIN DECLARE bf
integer;
select 1 from dbc.dbcinfo into :bf where infokey='no such key';
set par1=activity_count;
select 1 from dbc.dbcinfo into :bf where infokey='version';
set par2=activity_count;
END;
call samples.sp_test(a,b);
result : a=0, b=1
| |