首页 > 数据库技术 > 详细

【Rmarkdown rmysql】

时间:2015-10-09 11:40:11      阅读:467      评论:0      收藏:0      [点我收藏+]

http://stackoverflow.com/questions/21167070/how-to-query-multiple-times-and-close-the-connection-at-the-end

使用query1=dbSendQuery(db, "select * from table1")

会出现

Error in mysqlExecStatement(conn, statement, ...) : RS-DBI driver: (connection with pending rows, close resultSet before continuin

的错误,解决方案是

query1=dbGetQuery(db, "select * from table1")

Because:

The function ‘dbGetQuery’ does all these in one operation (submits the statement, fetches all output records, and clears the result set).

 

【Rmarkdown rmysql】

原文:http://www.cnblogs.com/colipso/p/4863286.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!