Simple question, but cannot find the answer.
Instead of:
Df <- sqlQuery(ch, "SELECT * FROM tblTest WHERE Id=25")
I want a more dynamic piece of code. Something like:
Id <- 25
Df <- sqlQuery(ch, c("SELECT * FROM tblTest WHERE Id=", Id))
But this is not correct.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…