I am trying to upload a tibble to mysql server, using function from DBI package in R.
however, I bump into a error if the table name is "READ" or "READs".
# an simple table
> x <- tibble(x=rep("a",5))
> dbWriteTable(DB, "READ", x, overwrite = TRUE, row.names = FALSE)
Error in .local(conn, statement, ...) :
could not run statement: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'READ
( `x` text
)' at line 1
Successfully upload if change to other names,
> dbWriteTable(DB, "READa", x, overwrite = TRUE, row.names = FALSE)
[1] TRUE
I don't understand what is the syntax error here...
Could someone explain it, please?