张志峰的博客

水滴石川,积少成多。

导航

上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 120 下一页

2015年6月15日

摘要: int -> Stringint i=12345;String s="";第一种方法:s=i+"";第二种方法:s=String.valueOf(i);这两种方法有什么区别呢?作用是不是一样的呢?是不是在任何下都能互换呢?String -> ints="12345";int i;第一种方法:i=I... 阅读全文

posted @ 2015-06-15 19:41 ╰★张志峰★╮ 阅读(257) 评论(0) 推荐(0)

2015年6月10日

摘要: sqlserver 自增ID插入指定数据set identity_insert 表名 ON --允许对自增列Id插入指定数据insert into table_name(Id,Name) values(1,'test')set identity_insert 表名 OFF --关闭对自增列Id插入指... 阅读全文

posted @ 2015-06-10 16:42 ╰★张志峰★╮ 阅读(334) 评论(0) 推荐(0)

摘要: Enumeration是java.util中的一个接口类,在Enumeration中封装了有关枚举数据集合的方法。 在Enumeration中提供了方法hawMoreElement()来判断集合中是束还有其它元素和方法nextElement()来获取下一个元素。利用这两个方法可以依次获得集合中元素。... 阅读全文

posted @ 2015-06-10 15:55 ╰★张志峰★╮ 阅读(550) 评论(0) 推荐(0)

2015年5月26日

摘要: //取当月的第一天function TDealWithXML.FDOM(Date: TDateTime): TDateTime;var Year, Month, Day: Word;begin DecodeDate(Date, Year, Month, Day); Result := Enco... 阅读全文

posted @ 2015-05-26 18:35 ╰★张志峰★╮ 阅读(711) 评论(0) 推荐(0)

摘要: NthDayOfWeek计算并返回指定日期是该月第几周Unit:DateUtilsfunctionNthDayOfWeek(constAValue: TDateTime): Word;Example:UsesSysUtils,DateUtils;Begin Write('Today is the '... 阅读全文

posted @ 2015-05-26 18:09 ╰★张志峰★╮ 阅读(1670) 评论(0) 推荐(0)

2015年5月22日

摘要: 很多人不知道SQL语句在SQL SERVER中是如何执行的,他们担心自己所写的SQL语句会被SQL SERVER误解。比如:select * from table1 where name='zhangsan' and tID > 10000和执行:select * from table1 where... 阅读全文

posted @ 2015-05-22 14:27 ╰★张志峰★╮ 阅读(253) 评论(0) 推荐(0)

2015年5月21日

摘要: 1:向表中添加字段Alter table [表名] add [列名] 类型2: 删除字段Alter table [表名] drop column [列名]3: 修改表中字段类型 (可以修改列的类型,是否为空)Alter table [表名] alter column [列名] 类型4:添加主键Alt... 阅读全文

posted @ 2015-05-21 15:47 ╰★张志峰★╮ 阅读(1486) 评论(0) 推荐(0)

2015年5月8日

摘要: 一.为什么要使用转义字符?1、 HTML中、&等都有特殊的含义(,用于链接签,&用于转义),不能够直接使用,这些符号是不显示在我们最终看到的网页里的,那如果我们希望在网页中显示这些符号,需要进行转义。2、 转义字符串(Escape Sequence)也称字符实体(Character Entity)。... 阅读全文

posted @ 2015-05-08 17:26 ╰★张志峰★╮ 阅读(219) 评论(0) 推荐(0)

2015年5月5日

摘要: 使用注解来构造IoC容器用注解来向Spring容器注册Bean。需要在applicationContext.xml中注册。如:在base-package指明一个包1 表明cn.gacl.java包及其子包中,如果某个类的头上带有特定的注解【@Component/@Repository/@Servic... 阅读全文

posted @ 2015-05-05 14:33 ╰★张志峰★╮ 阅读(192) 评论(0) 推荐(0)

2015年5月4日

摘要: 表示不能为空 :[^\s]+只能输入数字和字母: ^[A-Za-z0-9]+$ 阅读全文

posted @ 2015-05-04 14:37 ╰★张志峰★╮ 阅读(121) 评论(0) 推荐(0)

上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 120 下一页