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
1条答案
按热度按时间vngu2lb81#
报错提示的 start with
比如
create sequence seq_test
start with 3
increment by 1