• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Creating a JavaDB database thru run file

 
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
moose poop looks like football shaped elk poop. About the size of this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic