Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

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 27759

Trending Articles