Running sql queris with snowflake

i have writen a code to connect snowflake

i have a query one
sql_query = “copy into table1 from table2”

like this query i am unable to run i am getting below error
Malformed SQL Statement: Unexpected token encountered: [copy].

please help me how can i run this type of query

You have to give it valid SQL. copy isn’t an SQL statement.

and also when i do truncate a table then also i am getting same error.
i ran the below query
sql = truncate table employee

And your error message is?

Malformed SQL Statement: Unexpected token encountered: [truncate].

this one errror

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs