본문 바로가기

Programming/SpringBoot

JdbcSQLSyntaxErrorException 해결[h2 Database 42001-214]

반응형
SMALL

create table "user"(
    id          identity        not null,
    first_name  varchar(255)   not null,
    last_name   varchar(255)   not null,
    email       varchar(255)   not null,
    password    varchar(255)   not null
);

 

https://velog.io/@gwichanlee/JdbcSQLSyntaxErrorException-%ED%95%B4%EA%B2%B0

 

JdbcSQLSyntaxErrorException 해결

JdbcSQLSyntaxErrorException - SQL query에 SQL 예약어를 사용하였는지 확인할 것

velog.io

 

table 명에 "user"로 묶어 주니 에러가 해결.

 

https://www.baeldung.com/spring-boot-h2-jdbcsqlsyntaxerrorexception-expected-identifier

 

반응형
LIST