I have a data frame DF_1 in the MYSQL DB , Now i want to add DF_2 from Rstudio to DF_1 which is there in DB. for this I am using code as below
DF_1 <- data.frame("SN" = 1:3, "Age" = c(21,15,20), "Name" = c("John","Dora","Mike"))
DF_2 <- data.frame("SN" = 1:3, "Age" = c(21,15,30), "Name" = c("John","Dora","Clark"))
dbWriteTable(connection, "df_1", DF_2,row.names=F,append=T)
But the above code writes duplicates in DB
Any modifications in the above code would be helpful.
Thanks in advance