創(chuàng )建自增!!!!使用MYSQL
CREATE TABLE userinfo(
id int not null auto_increment,
primary key (id)
);
主鍵不能少!!!
使用sql server
sql server 添加自增字段
create table userinfo(
id int not null IDENTITY(1,1),
);
hibernate 的*.hbm.xml 文件使用
<generator class="identity" />
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請
點(diǎn)擊舉報。