- (1)配置文件
- <id name="keyId" type="java.lang.Integer">
- <column name="KEY_ID"/>
- <generator class="sequence">
- <param name="sequence">CHECKKEYINFO_KEY_ID</param>
- </generator>
- </id>
- (2)数据库执行语句
- -- Create sequence
- create sequence CHECKKEYINFO_KEY_ID
- minvalue 1
- maxvalue 999999999999999999999999999
- start with 61
- increment by 1
- cache 20;
oracle数据库自增序列号
最新推荐文章于 2024-05-30 18:30:00 发布