一、数字类型
所谓的“数字类”,就是指 DECIMAL 和 NUMERIC,它们是同一种类型。它严格的说不是一种数字类型,因为他们实际上是将数字以字符串形式保存的;他的值的每一位 (包括小数点) 占一个字节的存储空间,因此这种类型耗费空间比较大。但是它的一个突出的优点是小数的位数固定,在运算中不会“失真”,所以比较适合用于“价格”、“金额”这样对精度要求不高但准确度要求非常高的字段。
小数类,即浮点数类型,根据精度的不同,有 FLOAT 和 DOUBLE 两种。它们的优势是精确度,FLOAT 可以表示绝对值非常小、小到约 1.17E-38 (0.000...0117,小数点后面有 ...
try {
// Open the ZIP file
String inFilename = "infile.zip";
ZipInputStream in = new ZipInputStream(new FileInputStream(inFilename));
// Get the first entry
ZipEntry entry = in.getNextEntry();
// Open the output file
String outFilename = "o";
OutputStream out = new FileOutputStream(outFi ...
追求简单实用的方法
// These are the files to include in the ZIP file
String[] filenames = new String[]{"filename1", "filename2"};
// Create a buffer for reading the files
byte[] buf = new byte[1024];
try {
// Create the ZIP file
String outFilename = "outfile.zip";
ZipOutputStream out = new ZipOut ...
18.1. Introduction
介绍
Spring provides a higher level of abstraction for sending electronic mail which shields the user from the specifics of underlying mailing system and is responsible for a low level resource handling on behalf of the client.
Spring 支持一个更高层的抽象用来发送电子邮件,它隐藏底层邮件系统的细节并且代表客户端对低级别的控制 。 ...
最近加入圈子
最新评论
-
Tomcat6.0.18还不错
不要说admin,好像manager都不行了...
-- by zhanglubing927 -
Tomcat6.0.18还不错
不用tomcat已经好久了。公司用的是weblogic,自己也懒得折腾tomca ...
-- by tibetjungle -
Tomcat6.0.18还不错
可惜Admin部分还没有做好, 我一直用5.5的
-- by wjs0702cn -
项目管理系列一
这个不是这么算的。某一方面能够达到就很好了,其他方面不一定要达到。这只是一种统计 ...
-- by grantbb -
Tomcat6.0.18还不错
cyberblue 写道还是不怎么好用,动不动就要restart。 我这里非常 ...
-- by grantbb







评论排行榜