-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This needs to be unique #6
Comments
Yes, had the same issue when doing Chapter 3, need to define it as unique or just call it a primary key |
@f-mda Why has this not been updated in the book? Could throw some people off: create table if not exists Ingredient (
id varchar(4) primary key not null,
name varchar(25) not null,
type varchar(10) not null
); |
This also worked for me:
|
Maybe wrap the code within your comment in |
spring-in-action-6-samples/ch03/tacos-jdbctemplate/src/main/resources/schema.sql
Line 30 in 33acc64
The text was updated successfully, but these errors were encountered: