一 、处理带说明信息的图片与处理文件上传voiddelete() 删除保存在临时目录中的文件。 String getContentType() 获取文档的类型 Returns the content type passed by the browser or null if ...
分类:
Web程序 时间:
2015-05-19 12:11:42
阅读次数:
126
SET QUOTED_IDENTIFIER ONGOCREATE TABLE [dbo].[dt_navigation]( [id] [int] NOT NULL, [nav_type] [nvarchar](50) NULL, [name] [nvarchar](50) NULL...
分类:
数据库 时间:
2015-05-19 12:09:21
阅读次数:
231
Set集合 类似于一个罐子,丢进"Set",集合里的过个对象之间没有明显的顺序。
Set集合与Collection集合基本上完全一样,他没有提供任何额外的方法。
实际上Set就是Collection,只是行为略有不同,Set不允许包含重复元素。允许包含值为null的元素,但最多只能有一个null元素。
常用方法
按照定义,Set 接口继承 Collection 接...
分类:
编程语言 时间:
2015-05-19 10:52:03
阅读次数:
132
今天做一个Android的文件管理器,里面用到非常多的地方用到了getResources。Drawable currentIcon = null;currentIcon = getResources().getDrawable(R.drawable.folder);currentIcon = ge....
分类:
移动开发 时间:
2015-05-19 10:22:39
阅读次数:
155
mysql 将null转代为0分类:Mysql2012-12-15 11:566447人阅读评论(1)收藏举报1、如果为空返回0select ifnull(null,0)2、如果为空返回0,否则返回1select if(isnull(col),0,1) as col.MYSQL 中的IFNULL函数...
分类:
数据库 时间:
2015-05-19 10:20:28
阅读次数:
168
我们在create table时经常会碰到这样的语句,例如:password nvarchar(10)collate chinese_prc_ci_as null,那它到底是什么意思呢?不妨看看下面:首先,collate是一个子句,可应用于数据库定义或列定义以定义排序规则,或应用于字符串表达式以应用...
分类:
数据库 时间:
2015-05-19 10:12:19
阅读次数:
208
public class Solution { public TreeNode buildTree(int[] inorder, int[] postorder) { if (inorder == null || postorder == null || inorder.leng...
分类:
其他好文 时间:
2015-05-19 10:11:11
阅读次数:
113
public class Solution { public TreeNode buildTree(int[] preorder, int[] inorder) { if (preorder == null || inorder == null || preorder.lengt...
分类:
其他好文 时间:
2015-05-19 10:09:22
阅读次数:
136
public class Solution { public int maxArea(int[] height) { if (height == null || height.length < 2) { return 0; } ...
分类:
其他好文 时间:
2015-05-19 08:51:27
阅读次数:
125
$insertsql=<<<EOTinsert into tb_manager values(null,'$name','$pwd','1');select @pid:=last_insert_id();//寻找最新插入记录ID并赋值给pid,pid进行传值insert into tb_master...
分类:
数据库 时间:
2015-05-19 08:49:47
阅读次数:
155