| 創(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" /> | 
|  |