I need to write an Update SQL query via R.
Assume I have a table in R:
data <- data.frame(col1=c(1, 2, 4), col2=c(5, 4, 7))
How to write SQL update query with two in
operators
I tried the following way
update tabl1
set column_tO-be_updated = 'value'
where col_for_fiter1 in data$col1
and col_for_fiter2 in data$col2
Hovewer I didn't succed.
Please, help.