sql - HSQLDB - Why can't I set the default value to -1 -


i'm using hsqldb , when set default value of column -1, following error.

java.sql.sqlsyntaxerrorexception: unexpected token: - 

the sql statement use create table default value -1 looks this:

  create table "blah" (     "col" integer default -1,     ...   ) ; 

any ideas doing wrong? not possible hsqldb? i've exported ddl statements oracle db , changed them bit datatypes compatible hsqldb. therefore statement should work, default value makes troubles.

of course hsqldb supports this.

are sure there minus size in code? may have used different symbol looks minus sign.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -