在数据库中插入包含重音词的字符串(西班牙省名):
PROVINCE
------------
Málaga
Córdoba
Cádiz
以
结尾PROVINCE
------------
M
C
C
insertconnection <- DBI::dbConnect(RMySQL::MySQL(),
host = "myhost",
user = "myuser",
password = "mypass",
db = "mydb"
)
dbExecute(insertconnection, as.character('set character set "utf8"'))
copy_to(insertconnection, dataframe, temporary = FALSE, overwrite = TRUE)