22.02.14 20:51 작성
·
898
2
실행하고자 하는 코드 : insert into member(name) values("spring")
오류 코드
Column "spring" not found; SQL statement:
insert into member(name) values("spring") [42122-200] 42S22/42122 (도움말)
org.h2.jdbc.JdbcSQLSyntaxErrorException: Column "spring" not found; SQL statement:
insert into member(name) values("spring") [42122-200]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:453)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:429)
at org.h2.message.DbException.get(DbException.java:205)
at org.h2.message.DbException.get(DbException.java:181)
at org.h2.expression.ExpressionColumn.getColumnException(ExpressionColumn.java:163)
at org.h2.expression.ExpressionColumn.optimize(ExpressionColumn.java:145)
at org.h2.command.dml.Insert.prepare(Insert.java:327)
at org.h2.command.Parser.prepareCommand(Parser.java:744)
at org.h2.engine.Session.prepareLocal(Session.java:657)
at org.h2.engine.Session.prepareCommand(Session.java:595)
at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1235)
at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:212)
at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:201)
at org.h2.server.web.WebApp.getResult(WebApp.java:1459)
at org.h2.server.web.WebApp.query(WebApp.java:1116)
at org.h2.server.web.WebApp$1.next(WebApp.java:1078)
at org.h2.server.web.WebApp$1.next(WebApp.java:1065)
at org.h2.server.web.WebThread.process(WebThread.java:178)
at org.h2.server.web.WebThread.run(WebThread.java:94)
at java.base/java.lang.Thread.run(Thread.java:834)
test.mv도 읽기전용이 아닌것을 확인했습니다.
왜 이런 오류가 발생하고.. insert가 안될까요?
답변 4
0
0
0