Skip to content
Advertisement

Got invalid expression error , while inserting JSON data into VARIANT column

Trying to insert multiple rows into a snowflake table

Have tried replacing ‘$$’ with single quotes

Getting error:

SQL compilation error: Invalid expression [PARSE_JSON(‘{“def”:1}’)] in VALUES clause

What am I doing wrong?

Advertisement

Answer

You cannot use PARSE_JSON in the values section. But you can do a

number of rows inserted
2
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement