當我運行這個時,它說它的無效識別符號 "RTX".
。 gf<-"cyberpunk"。
#input$rat給出了一個字串 "RTX "的值。
delete<-paste("select * from games where name = ",gf," and graphics = ", input$rat, sep=")
yx<-dbGetQuery(ValidateUser,delete)
print(yx)
uj5u.com熱心網友回復:
你需要在所有字符欄位的查詢中包含引號,paste0而不是paste將避免意外的空格:
delete < - 粘貼0("select * from games where name = '",gf,"' and graphics = '", input$rat,"")
洗掉。
[1] "select * from games where name = 'cyberpunk' and graphics = 'RTX'"
uj5u.com熱心網友回復:
我們可以使用glue
glue::glue("select * from games where name = '{gf}' and graphics = '{input$rat}")
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/309795.html
標籤:
上一篇:沒有考慮到設定錯誤日志的位置
