INTO RESULT

Lets you set a custom label for SELECT. It can't be used along with DISCARD.

Examples:

SELECT 1 INTO RESULT foo;
SELECT * FROM
my_table
WHERE value % 2 == 0
INTO RESULT `Result name`;
Previous
Next