Displaying 1 result from an estimated 1 matches for "colm1".
Did you mean:
col1
2014 Jul 21
0
Displaying database records returned from postgresql to R through Java
...ostgreSQL)
fnct1 <- function()
{
drv <- dbDriver("PostgreSQL")
r <- dbConnect(drv, host='local', port='1234',dbname='db',
user='user', password='pwd')
rs <- dbSendQuery(r,"select * from table1 where colm1 = 'val1'")
temp <- fetch(rs,n=-1)
return(temp)
}
My Java code is :
c.parseAndEval("try(source(\"scpt.R\"),silent=TRUE)");
res = c.parseAndEval("try(fnct1(), silent=TRUE)");
System.out.println("table names are:&q...