I am trying to interface to H2 from R via JDBC. select seems to work
and I can get drop to work too but not show. The select statement
below works
> dbGetQuery(con, "select * from tt")
id name DT
1 1 Hello 2000-01-01
2 2 World 2002-03-17
but if I issue a show statement I get a syntax error. Is show
supposed to work via JDBC?
> dbGetQuery(con, "show columns from tt")
Error in .verify.JDBC.result(s, "Unable to execute JDBC statement ",
statement) :
Unable to execute JDBC statement show columns from tt (Syntax error
in SQL statement SHOW[*] COLUMNS FROM TT ; expected SELECT, SET,
SAVEPOINT, SCRIPT, SHUTDOWN, {; SQL statement:
show columns from tt [42001-74])
> dbGetQuery(con, "show tables")
Error in .verify.JDBC.result(s, "Unable to execute JDBC statement ",
statement) :
Unable to execute JDBC statement show tables (Syntax error in SQL
statement SHOW[*] TABLES ; expected SELECT, SET, SAVEPOINT, SCRIPT,
SHUTDOWN, {; SQL statement:
show tables [42001-74])
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/h2-database?hl=en.