Global temporary tables in Java DB -- Apache Derby



I can't seem to use "declare create temporary table" to function in
Java DB, JVM 1.6.0_03 Linux. After starting an embedded Derby server,
I issue the following;

stmt.execute("SET SCHEMA myschema");
stmt.execute("DECLARE CREATE TEMPORARY TABLE SESSION.mytable (fld INT
NOT NULL) NOT LOGGED");
stmt.execute("INSERT INTO SESSION.mytable VALUES(1)");
System.err.println(stmt.getUpdateCount());
stmt.execute("SELECT * FROM SESSION.mytable");

The getUpdateCount after insert is one (1), however the query does not
return a resultset. What am I doing incorrectly?

cj

.



Relevant Pages

  • Linux Suns JVM needs improvements
    ... As I already pointed out in another thread, I really think the Linux ... whenever Java loads in Linux, it is such a system hog!! ... Looks as if the Linux JVM had zero garbage collection. ... Sun should really take care of thier JVM if they want to make Java ...
    (Fedora)
  • Re: Integrating Java application on embedded product running C code
    ... Java application.The product has got some C code already running. ... 2)From JNI tutorial,it seems we need DLL support to do this,but the ... The first thing you need to run any Java applications at all is a JVM, ... 1.5.I believe I need to look for JVM for my Linux on board.The linux ...
    (comp.arch.embedded)
  • Re: Ruby App Distribution
    ... Java 6 versions exist for Linux 32/64, Solaris, and Windows. ... Java 7 source is GPL and rapidly being ported to platforms that don't ... Where is a complete Java 5 implementation other than Sun JVM? ...
    (comp.lang.ruby)
  • Re: Ruby App Distribution
    ... Java 6 versions exist for Linux 32/64, Solaris, and Windows. ... Java 7 source is GPL and rapidly being ported to platforms that don't ... there's dozens of JVM implementations. ...
    (comp.lang.ruby)
  • Re: Global temporary tables in Java DB -- Apache Derby
    ... Java DB, JVM 1.6.0_03 Linux. ... After starting an embedded Derby server, ... return a resultset. ...
    (comp.lang.java.databases)