Writing the data frame to MySql DB table

后端 未结 3 1846
梦如初夏
梦如初夏 2020-12-28 18:52

How to write the data frame in R into MySQL?

dateTime            host    authId     sessionId      status                    action         


        
3条回答
  •  感动是毒
    2020-12-28 19:07

    Use the dbWriteTable function. It looks like this :

    dbWriteTable(connection, value = data.frame, name = "MyTable", append = TRUE ) 
    

    The function is well documented.

    P.S Also look at: RMySQL dbWriteTable with field.types

提交回复
热议问题