摘要: 如何实现MySQL设置自增字段是许多人都问到的问题,下面就为您介绍MySQL设置自增字段的相关知识,希望对您学习MySQL数据库能有所启迪。MySQL设置自增字段的相关语句:alter table album change ALBUM_ID ALBUM_ID bigint not null auto_increment;alter table album auto_increment=1;创建:mysql>create table cc(id int auto_increment,name varchar(20),primary key(id));修改:mysql> alter t 阅读全文
posted @ 2013-04-25 11:25 Tim&Blog 阅读(2045) 评论(0) 推荐(0) 编辑
摘要: spring2+struts2+hibernate3实现连接两个数据库jdbc.properties文件,写数据库的连接信息jdbc.driverClassName=com.mysql.jdbc.Driverjdbc.url=jdbc:mysql://127.0.0.1:3306/destoon?useUnicode=true&characterEncoding=utf-8jdbc.username=rootjdbc.password=123456sql.driverClassName=net.sourceforge.jtds.jdbc.Driversql.url=jdbc:jtds: 阅读全文
posted @ 2013-04-25 09:55 Tim&Blog 阅读(673) 评论(0) 推荐(0) 编辑