- 博客(2)
- 资源 (8)
- 收藏
- 关注
原创 Mysql,SqlServer,Oracle主键自动增长的设置
1、把主键定义为自动增长标识符类型在mysql中,如果把表的主键设为auto_increment类型,数据库就会自动为主键赋值。例如:create table customers(id int auto_increment primary key not null, name varchar(15));insert into customers(name) values("name1"
2008-05-14 23:45:00 23462
原创 计算两个日期之间相差的月数
/** *//** * 计算两个日期之间相差的月数 * @param strDate1 * @param strDate2 * @return */ public static int dispersionMonth2(String strDate1, String strDate2) ...{ int iMonth = 0;
2008-05-13 00:12:00 4593 2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人