Forums Register Login

Creating a JavaDB database thru run file

+Pie Number of slices to send: Send


Update, with comparison of these 2 lines, I don't know the later gives me

Error code -1, SQL state 42X01: Syntax error: Encountered "<EOF>" at line 4, column 57.


How do I create a table for Java DB?
There seems to be information everywhere, and don't know which ones are correct.
Thanks
Jack
+Pie Number of slices to send: Send
If you look at the second statement really carefully, you should see it's missing a parenthesis somewhere.
+Pie Number of slices to send: Send
Hello Martin,
Once again, it's me having question again.
I've solved it as you provided the pointer for me.
But I have another new question


Error code -1, SQL state 42X01: Syntax error: Encountered "(" at line 7, column 39.
Line 308, column 1

Any ideas what they are. I have been searching the web, but not much information out there.
Thanks a lot
Jack

+Pie Number of slices to send: Send
The line number referenced to by the error message is usually related to the beginning of the failed statement. It looks like you're running an SQL script, so you need to find out which of the statements has failed and count the lines from there.

I guess that the problem might be with the CREATE TABLE "elog" statement, perhaps the DEFAULT clause doesn't allow the default value to be in parenthesis. But I may easily be wrong.
God is a comedian playing for an audience that is afraid to laugh - Voltair. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 947 times.
Similar Threads
Identity function in HSQLDB
design security for web project management system
HSQL: strategy=GenerationType.IDENTITY. for auto-increment?
Problems using GenerationType.IDENTITY for in-memory databases
Toplink JPA insertable problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:25:41.