Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Statement stmt SQL syntax error

 
James Howerton
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could someone look at my Statement stmt? is this error due to improper string creation?
Thanks












[moderator fixed BB Codes in this post]
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not particularly familiar with the format of the CREATE TABLE command, especially since I have never ever had to write Java code to create a table, but without actually looking it up, that doesn't appear to me to be the right way to declare the primary key. Just doesn't seem right.

You didn't tell us which of the "(" characters is at position 149. We could copy the command and paste it into a text editor and count the characters, but then so could you.
 
James Howerton
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
In MySQL it seems to can read the primary key like that but I used the alternative and it passed. Thanks for explaining how that error was working I didn't to count the characters to find the error.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic