Skip to content
Advertisement

Save the output of a procedure in snowflake in a variable

I have following procedure:

Now I want to do two things: First I would like to save the output of the procedure in the variable todays_amount So I tried this:

But this does not work.

And second: Instead of where TARGET_KEY = '20' i would like to do where TARGET_KEY = targetkey_variable But this does not work.

Advertisement

Answer

It appears that you can’t set it directly from the call statement, but you can do this:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement