Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Creating a JavaDB database thru run file

 
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
 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • 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 Vashko
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • 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.
 
Please enjoy this holographic presentation of our apocalyptic dilemma right after this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic