登录
上传中....
hibernate 序列 mysql
序列只有db2 oracle有,mysql没有序列的,不过你可以给你所所创建的表的主键设置为自增。
例如 create table a
(
id int(20) auto_increment
)
不过设置为自增的键必须是数值类型的。