Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

var from query

Status
Not open for further replies.

dupa12345

MIS
Jun 6, 2002
10
US
can i do something like this somehow?

declare x float;
set x = select count(*) from t1;

i want to use x as a row count in several places in following queries in my procedure.

thx all for your previous responses!!!
 
Your select statement in the procedure should be something like :

select count(*) into :x from t1;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top