LoginSignup
0
0

More than 1 year has passed since last update.

H2DB 予約後に関連するエラー

Posted at

apiテストでh2ので以下のエラーが出た

org.h2.jdbc.JdbcSQLSyntaxErrorException: SQLステートメントに文法エラーがあります

原因 offsetがh2の予約語になっている。

create文..., OFFSET[*] NUMBER(5)

対応方法
該当の予約後をダブルクォーテーションで囲む

以下のリンクが非常に分かりやすいです。
参考: h2.jdbc.JdbcSQLSyntaxErrorException:SQLステートメントに文法エラーがあります

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0