Skip to content

RMySQL CREATE TABLE error

2 messages · Jeffrey Horner, Anthony Dick

#
Not sure why you need to use temporary tables, but if you do you may 
want to add a "COMMIT" statement immediately after your "CREATE 
TEMPORARY TABLE" statement. Using your code, something like this may work:

dbSendQuery(con,"COMMIT")

Scope out this page in the MySQL 5.0 manual:

http://dev.mysql.com/doc/refman/5.0/en/implicit-commit.html

Three notes:

1) It's best to provide small reproducible examples WITHOUT personal 
information such as usernames and passwords (You may want to inform the 
administrators of db.ci.uchicago.edu that you just posted your 
credentials to a publicly available mailing list).

2) It's best to provide software versions, and in particular which 
storage engine you are using with MySQL. For instance innodb tables are 
transaction-safe whereas MyISAM tables are not.

3) Database related questions are best posted to the R-sig-db mailing 
list which you can find here:

http://www.r-project.org/mail.html

Best,

Jeff
Anthony Dick wrote:

  
    
  
#
Hi Jeff-

Thanks for the tips. Posting my password information is just stupid, and 
I have contacted my administrator.

I am using temporary tables because I am dealing with very large tables 
and using JOINs, and for joining smaller temporary tables is much faster.

Thanks again.

Anthony
Jeffrey Horner wrote: