Re: [R] sqldf and number of records affected

2020-06-11 Thread Ravi Jeyaraman
V1 > 5 "))) sqldf("select * from main.con") sqldf() -Original Message- From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Sent: Thursday, June 11, 2020 10:30 AM To: Ravi Jeyaraman Cc: r-help@r-project.org Subject: Re: [R] sqldf and number of records affected

Re: [R] sqldf and number of records affected

2020-06-11 Thread Gabor Grothendieck
iginal Message- > From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] > Sent: Thursday, June 11, 2020 9:12 AM > To: Ravi Jeyaraman > Cc: r-help@r-project.org > Subject: Re: [R] sqldf and number of records affected > > Here is an example. Ignore the warning or use

Re: [R] sqldf and number of records affected

2020-06-11 Thread Ravi Jeyaraman
yaraman Cc: r-help@r-project.org Subject: Re: [R] sqldf and number of records affected Here is an example. Ignore the warning or use the workaround discussed here https://github.com/ggrothendieck/sqldf/issues/40 to avoid the warning. library(sqldf) sqldf() # use same connection until next sqld

Re: [R] sqldf and number of records affected

2020-06-11 Thread Gabor Grothendieck
Here is an example. Ignore the warning or use the workaround discussed here https://github.com/ggrothendieck/sqldf/issues/40 to avoid the warning. library(sqldf) sqldf() # use same connection until next sqldf() sqldf(c("pragma count_changes = 1", "update BOD set demand = 99 where Time > 4"

[R] sqldf and number of records affected

2020-06-11 Thread Ravi Jeyaraman
Hello all, When I execute a SQL using SQLDF, how do I get the number of records affected? I mean, if I run an UPDATE on a data frame, it doesn't tell me if and how many records got updated. I've read through the documentation and there don't seem to be a way to get this info unless it's done on a