As the answer to this related question explains , you need to create a line containing the statement DELETEprogrammatically, and then you can execute DELETE, like any other statement in sqlQuery.
, DELETE "" R, , . , data_to_delete, paste as.character, , . .
, datasource , some_table_name . .
del_query <- sprintf("DELETE from some_table_name
where record_id IN (%s)",
paste(as.character(data_to_delete),
collapse=", ")
)
sqlQuery(datasource, del_query)
, , . , IN - - 2000 SQL Server.
, , , sqlQuery, IN ( SELECT * FROM ... ), , "" R.