I have a requirement to parameterize the column to be updated. Trying to achieve something like this:
CODE SNIPPET:
set fVal = 'col1';
-- update query
UPDATE as t1 SET IDENTIFIER($fVal) = t2.value from <TABLE 2> as t2 where t1.id = t2.id ;
Snowflake throws error saying: SQL compilation error: syntax error line 4 at position 14 unexpected '('.