JAVA 对象转型(casting)
1) 基类的引用类型变量可以指向其子类的对象2) 基类的引用不可以访问其子类对象新增加的成员(属性和方法)如: 基类animal a = new dog(); &nb...
【原创】exists 的用法
1 从#t2中插入#t1中没有的数据select ww, ww_index into #t1from calendarwhere ww_index between 1 and 3order by ww_indexselect ww, ww_index into #t2from calendarwhere ww_index between 1 and 6ord...
JAVA 编程复习总结笔记四
1 继承中构造方法的规则1) 子类的构造的过程中必须调用其基类的构造方法,即构造子类的时候必须先构造好基类(没有父亲的存在哪有...
JAVA 编程复习总结笔记三
1 static 1) static的成员变量只有一份,不像其他的成员变量只要new一个对象就有一份。2) 在调用...
【转载】将字符串转换为数值
#include<stdlib.h> #include<stdio.h> void main() { char value[]="hhkj"; double valuea=0; valuea=atof(value); //数组名作形参,将字符串"hhkj"转换为浮点数.然后double类型的变量,也就是说atof(value)的返回类...
【原创】代替游标的方法
select * into #tempfrom calendar select yr, row_number() over (order by start_dt) as rowNumber into #dt from #tempdeclare @max intselect @max = count(rowNumber)from #dt decla...
JAVA 编程复习总结笔记二
1 Byte:一个字节 short:二个字节 int:四个字节 long: 八个字节2 &nb...
JAVA 编程复习总结笔记一
1 安装JDK时不要默认安装到C:\Program Files\java…..,因为’Program Files’中间有空格,会对以后安装的相关软件的运行。所以,最好默认安装到C:\jdk…..中。2&nb...
【原创】T-SQL insert temp table 表达上的差异
1, create table #a(id int)insert into #a select id from deptdrop table #a 2,select id into #a from dept drop table #a 两种执行效果是一样的。