druid sql parse 出错

iswrvxsc  于 4个月前  发布在  Druid
关注(0)|答案(1)|浏览(61)

use jpa+druid
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ID_SEQ")
@SequenceGenerator(name = "ID_SEQ", sequenceName = "seq_abc",allocationSize = 1)

sqlparse error:
create sequence seq_abc start 1 increment 1;

com.alibaba.druid.sql.parser
syntax error, error in :'tart 1 increment 1', expect WITH, actual null, pos 31, line 1, column 31, token LITERAL_INT

vngu2lb8

vngu2lb81#

报错提示的 start with

比如
create sequence seq_test

start with 3

increment by 1

相关问题