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

Cursors in stored procedures - response (2) by dnoeth

$
0
0
Hi Mithun, the syntax for returning result set is based on Standard SQL, but it's not an actual cursor (only those you actually process rows using fetch or FOR are sequential). A cursor for a DYNAMIC RESULT SET is just like any SELECT answer set, it's simply returned to the client: REPLACE PROCEDURE proc () DYNAMIC RESULT SETS 1 BEGIN DECLARE c CURSOR WITH RETURN ONLY FOR SELECT * FROM dbc.TablesV; OPEN c; END; Dieter

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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