summaryrefslogtreecommitdiffstats
path: root/r/connect.R (plain)
blob: b42b8bb391d01a3778105c70644c12c94b0c4931
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require (RJDBC);

drv <- JDBC ("com.ibm.db2.jcc.DB2Driver");
conn <- dbConnect (drv, "jdbc:db2:exp004");

dbListTables (conn);

dbGetQuery (conn, "SELECT COUNT(*) FROM vis_collect");

d <- dbReadTable (conn, "vis_collect");

hist (d$"N_CITES");

dbDisconnect (conn);
dbUnloadDriver (drv);

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.