• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a JavaDB database thru run file

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you look at the second statement really carefully, you should see it's missing a parenthesis somewhere.
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic