I'm trying to insert data into redshift table using this SQL query:
insert into temp(JSON)({"name":"abc","lname":"xyz"});
but it does not work, I get an error:
Syntax error
Is there any way to insert json data into redshift using a query?
I want to insert a whole json object into query instead of passing key and values