Into Helper
The into function is used to extract the resulting rows from a subquery or from a select into statement.
Fetch Function
The INTO helper uses a fetch function to get the row from a resulting query. The definition of the Fetch Function is described below.
var fetch = (count,rows,stmt) =>
(count && rows.next() && Array.apply(null,Array(stmt.getColumnCount())).map((_,i)
=> rows.getColumnValue(i + 1))) || [];Into Sample Usage
Teradata
-- Additional Params: -t JavaScript
REPLACE PROCEDURE SubQuerypoc ()
BEGIN
DECLARE monat INTEGER;
SET monat = (SELECT column1
FROM table1);
END;Snowflake output
Into Helper function Definition
Known Issues
No issues were found.
Related EWIs
No related EWIs.
Last updated
