
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement "\000d\000a drop table if exists [*]user cascade "; expected "identifier"; SQL statement:
엔티티를 작성하고 무사히 넘어가나 싶었지만
나를 괴롭히는 3줄 ..
언제 레포랑 서비스 다 작성하고 프론트까지 할까 싶다.
~.yml 현재 상태
jpa:
hibernate:
ddl-auto: create #none? ?? ???? ??? ??.
properties:
hibernate:
show_sql: true
format_sql: true
여기서 ddl-auto를 건들여 봤더니 none으로 설정하면 오류 코드가 안떴으나,, 엔티티로 DB를 생성하려고 ddl 옵션을 사용하는거니 더 알아보았다.
ddl-auto 종류
- create
- create-drop
- update
- validate
- none: default
해결

ddl옵션은 전혀 상관없었고, 문제는 엔티티에서 user 키워드를 사용했기 때문이였다. h2 최신버전에서는 user 테이블이 이미 존재해서 중복이 안되는것

org.h2.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement "drop table if exists [*]user CASCADE "; expected "identi
I've below data.sql file in my src/main/resources/data.sql file. I would like user tabel to be created from user.csv file. DROP TABLE IF EXISTS `USER` CASCADE; CREATE TABLE `user` AS SELECT * FROM
stackoverflow.com

Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement "\000d\000a drop table if exists [*]user cascade "; expected "identifier"; SQL statement:
엔티티를 작성하고 무사히 넘어가나 싶었지만
나를 괴롭히는 3줄 ..
언제 레포랑 서비스 다 작성하고 프론트까지 할까 싶다.
~.yml 현재 상태
jpa:
hibernate:
ddl-auto: create #none? ?? ???? ??? ??.
properties:
hibernate:
show_sql: true
format_sql: true
여기서 ddl-auto를 건들여 봤더니 none으로 설정하면 오류 코드가 안떴으나,, 엔티티로 DB를 생성하려고 ddl 옵션을 사용하는거니 더 알아보았다.
ddl-auto 종류
- create
- create-drop
- update
- validate
- none: default
해결

ddl옵션은 전혀 상관없었고, 문제는 엔티티에서 user 키워드를 사용했기 때문이였다. h2 최신버전에서는 user 테이블이 이미 존재해서 중복이 안되는것

org.h2.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement "drop table if exists [*]user CASCADE "; expected "identi
I've below data.sql file in my src/main/resources/data.sql file. I would like user tabel to be created from user.csv file. DROP TABLE IF EXISTS `USER` CASCADE; CREATE TABLE `user` AS SELECT * FROM
stackoverflow.com