hsqldb

SQL (HSQLDB) query to create a pivot table equivalent in LibreOffice Base

这一生的挚爱 提交于 2021-02-10 07:42:37
问题 I'm working on a database in LibreOffice Base and trying to output the equivalent of a pivot table. Base uses HSQL which, I understand, doesn't support pivot, but the reports you can make with it are perfect for me so I want to stick with it. There are three columns I want to involve in my pivot: Rotation , Modality and Number . Here is an example of how the data looks at present: Rotation | Modality | Number 1 | 1 | 5 1 | 2 | 3 1 | 3 | 4 2 | 1 | 6 2 | 1 | 5 2 | 3 | 2 3 | 1 | 1 3 | 2 | 4 As

HSQLDB - which is the main database file

荒凉一梦 提交于 2021-02-06 15:48:17
问题 I am using HSQLDB in the embedded mode. jdbc:hsqldb:file:abc\\TESTDB; After creating the database, the folder abc has the following files: TESTDB.lck TESTDB.script TESTDB.log TESTDB.properties My application is working properly But my question is which is the main database file amongst the above-listed files? Or is the main database file stored in some other location? 回答1: .script contains all the statements to create the tables, alter them and insert the data. This file is created when you

The specified database user/password combination is rejected: org.hsqldb.HsqlException: unexpected token: NOT

别等时光非礼了梦想. 提交于 2021-01-29 05:04:00
问题 I am using HSQLDB to connect to my database via IDEA. However I am getting the error - username/password rejected, even though I entered correctly: The specified database user/password combination is rejected: org.hsqldb.HsqlException: unexpected token: NOT The database connection was successful before, but after had I modified the SQL code for one of the tables, the error started to occur The code for establishing the connection is below: import java.sql.Connection; import java.sql

How to use ON DUPLICATE KEY on hsqldb 2.3.4

风流意气都作罢 提交于 2021-01-29 04:34:47
问题 According to the update on hsqldb.org listed here: http://hsqldb.org/web/features200.html It now supports the mysql syntax ON DUPLICATE KEY in hsqldb 2.3.4, yet Im still getting sql errors when trying to run it. If im reading correctly I may need to set certain flags. But I cant find what to set to be able to use this synatx. 回答1: MySQL compatibility is documented in the Guide http://hsqldb.org/doc/2.0/guide/compatibility-chapt.html#coc_compatibility_mysql You need to execute SET DATABASE SQL

Hsql - create schema if not exists in spring boot application

邮差的信 提交于 2021-01-29 03:27:04
问题 I am using embedded hsql db in my spring boot application and want to create a schema only if does not exist in the db. Assuming the schema name is XXX, I have the below single statement schema-hsql.sql file: CREATE SCHEMA XXX IF NOT EXISTS However this is faing with below stack trace: org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of URL [file:/xxx/schema-hsql.sql]: CREATE SCHEMA XXX IF NOT EXISTS; nested exception is java

Hsql - create schema if not exists in spring boot application

微笑、不失礼 提交于 2021-01-29 03:13:46
问题 I am using embedded hsql db in my spring boot application and want to create a schema only if does not exist in the db. Assuming the schema name is XXX, I have the below single statement schema-hsql.sql file: CREATE SCHEMA XXX IF NOT EXISTS However this is faing with below stack trace: org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of URL [file:/xxx/schema-hsql.sql]: CREATE SCHEMA XXX IF NOT EXISTS; nested exception is java

Maven hangs while running test case Eclipselink & hsqldb

半腔热情 提交于 2020-08-18 17:51:58
问题 Using jps and jstack I can get to the offending waiting thread but don't know how to troubleshoot it or what is causing it. See below the Maven dependencies and the jstack result and the waiting thread with tid=0x000000000022c000 . Analysing further it seems an issue between Eclipselink and hsqldb for the chosen versions. I got this issue as result of upgrading those two libraries since it used to work perfectly for versions 2.0.1 and 1.8.0.10 of Eclipselink and hsqldb respectively.