[R] Variables in RODBC environment

Thorsten Muehge MUEHGE at de.ibm.com
Thu Oct 5 09:35:26 CEST 2006


Hello Experts,
how can I use variables in the RODBC environment.

Example which does not work:

Thanks for your help.

Thorsten

pn <-  '39R5238';

library(RODBC);
odbcobj <- odbcConnect("SQUIT21C",uid="muehge",pwd="xxx");
sql <- "select
u.unitid,
from test
where part in ('pn')
";
parameter <- sqlQuery(odbcobj,sql);
odbcClose(odbcobj);



More information about the R-help mailing list