Hi In the original code, there must not be a comma "," between "LOCATION_ID" and "int".
I.e. must write: "... LOCATION_ID int NOT NULL ..." and not: "... LOCATION_ID/*,*/ int NOT NULL ..." Otherwise, I think the declaration of the constraint on the "LOCATION_ID" line must work, even if I like better Moria's solution. Hope it helps mihai Moria Shebsovich a écrit : > > Hi Fernando, > > Have you tried this?? > > > > createLocation = "create table LOCATION " + > > "(LOCATION_ID int NOT NULL, " + > > "LOCATION varchar(40), " + > > "primary key(LOCATION_ID))"; > > > > > > Regards, > > Moria. > > ------------------------------------------------------------------------ > > *From:* fernando pardo [mailto:ingsopor...@gmail.com] > *Sent:* Wednesday, November 18, 2009 6:11 PM > *To:* java-ee-j2ee-programming-with-passion@googlegroups.com > *Subject:* [java ee programming] anyone help me lab1020 > > > > Hello guys: > > How can i do to create the file MyOwnJDBCProgram.java? > > I created the file location.java with the following path: > > JDBCSamples------>Source > packages------>New-------------->JavaMainClasses(is this well?) > > and then on the line: > > "(Location_id," Integer not NULL PRIMARY KEY, " + > > generated this following failure: > > ;expected > > In this line: > > "(Location_id," Integer not NULL PRIMARY KEY, " + > > How can i do to solve it? > > Anyone could help me? > thanks > > > > > > > > > -- > You received this message because you are subscribed to the Google > Groups "Java EE (J2EE) Programming with Passion!" group. > To post to this group, send email to > java-ee-j2ee-programming-with-passion@googlegroups.com > To unsubscribe from this group, send email to > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Java EE (J2EE) Programming with Passion!" group. > To post to this group, send email to > java-ee-j2ee-programming-with-passion@googlegroups.com > To unsubscribe from this group, send email to > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en > -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en