日期:2014-05-16 浏览次数:20785 次
show create table NAP_TB_USER; CREATE TABLE `NAP_TB_USER` ( `ID` bigint(20) NOT NULL auto_increment, `EMAIL` varchar(50) default NULL, `MOBILE` varchar(20) default NULL, `MSN` varchar(50) default NULL, `INDEX_SETTING` varchar(50) default NULL, `PASSWORD` varchar(50) default NULL, `PHONE` varchar(20) default NULL, `REAL_NAME` varchar(50) default NULL, `USER_NAME` varchar(50) NOT NULL, PRIMARY KEY (`ID`), UNIQUE KEY `USER_NAME` (`USER_NAME`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8
alter table tablename type=InnoDb;
<property name="dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>