Re: Global temporary tables in Java DB -- Apache Derby



CJ <spambox1@xxxxxxxxxxxxxx> writes:

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?

Statement.execute(String) doesn't return a result
set. Statement.executeQuery(String) on the other hand, does.

--
dt

Questions about Derby/Java DB? Please visit
http://db.apache.org/derby/derby_mail.html
.



Relevant Pages

  • Global temporary tables in Java DB -- Apache Derby
    ... Java DB, JVM 1.6.0_03 Linux. ... After starting an embedded Derby server, ...
    (comp.lang.java.databases)
  • Re: [kde-linux] How Save Konsole Shell Schema
    ... I've changed everything possible in your two suggestions and still can't get linux to use my schema. ... and background color in a Konsole Shell window and saved it as a schema ... Archives: http://lists.kde.org/. ...
    (KDE)
  • Re: [PHP] first php 5 class
    ... linux) and convert its xml files automatically to propel format. ... more we have our schema generation stuff which joins together several ... dbdesigner xmls (and generates code for some features propel does not ...
    (php.general)
  • XML Editors
    ... What XML editors does Linux have. ... the structure of the document and also do validation based on the schema? ...
    (comp.os.linux.misc)