Skip to content
Prev 172090 / 398503 Next

How to create temporary table in MySQL

Creating a temp table isn't completely intuitive with MySQL 5 and R
2.8..1, but it can be done.
Loading required package: DBI
Error in mysqlExecStatement(conn, statement, ...) :
  RS-DBI driver: (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 '(
	x bigint
)' at line 2)
[1] FALSE
Warning message:
In mysqlWriteTable(conn, name, value, ...) :
  could not create table: aborting mysqlWriteTable
NULL
[1] TRUE
x
1   1
2   2
3   3
4   4
5   5
6   6
7   7
8   8
9   9
10 10
NULL




Andrew