Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Storing long strings (CLOB) in Hsqldb databases?

Tags:

java

sql

hsqldb

So here's some code:

statement.executeUpdate("CREATE TABLE SomeTable(id INTEGER IDENTITY, " +
    "text CLOB)");

which throws an exception "Wrong data type: CLOB in statement [...]". Is there a way to store CLOBs in Hsqldb databases? The documentation says it is. Or maybe my knowledge of SQL is so rusty that I forgot how to define them.

like image 950
Marcin Avatar asked Jul 16 '09 06:07

Marcin


1 Answers

Try LONGVARCHAR instead of CLOB

like image 73
objects Avatar answered Sep 20 '22 17:09

objects