摘要:
有两个简单例子,以说明 “exists”和“in”的效率问题 1) select * from T1 where exists(select 1 from T2 where T1.a=T2.a) ; T1数据量小而T2数据量非常大时,T1 2) select * from T1 where T1... 阅读全文
摘要:
管道流,用于线程间的通信。一个线程的PipedInputStream对象从另外一个线程的PipedOutputStream对象读取输入。要使管道流有用,必须同时构造管道输入流和管道输出流。 代码 Code highlighting produced by Actipro CodeHighligh... 阅读全文
摘要:
FileInputStream 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->import java.io.*;public class ... 阅读全文
摘要:
InputStream三个基本的读方法一. abstract int read(): 读取一个字节数据,并返回读到的数据,如果返回-1,表示读到了流的末尾。二. int read(byte[] b):将数据读入一个字节数组,同时返回读取的字节数。如果返回-1,表示读到了输入流的末尾。三. int ... 阅读全文