RMysql's dbGetQuery converts BigInt to numeric types. This alters some of the values. How can I read the BigInt fields as strings instead of numeric?
views:
37answers:
1
+2
A:
One way would be to cast on the SQL side of things:
select cast(foo as char), bar from someTable;
You may have to look up the exact MySQL casting syntax for details.
[ By the way, there is no tag [rstats] here. ]
Dirk Eddelbuettel
2010-07-13 21:44:15
thanks, that does work but i think you mean: cast(foo as char)
tommy chheng
2010-07-13 21:52:58
Yup, thanks, fixed.
Dirk Eddelbuettel
2010-07-13 21:55:39