Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Storing result set as a variable in a procedure - forum topic by akhilkotak

$
0
0

Hi,
 
I am trying to pass a result set of a query into a procedure. I  only need one column from a table but the column will have multiple rows.
I have tried within the procedure to have : SELECT columnname INTO :variable from dbc.tablename where columnname2 = 'value';
I need all the rows from the result so that I can pass it into another query within the procedure, is there any way to do this or an alternative.
 
The current error I get is:  CALL Failed. 7627:  SELECT-INTO returned more than one row. 
 
Thanks,
Akhil
 

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>