--查询日期语言种类select*fromV$NLS_PARAMETERS;select*fromnls_session_parameters--TO_DATE(null)的用法(插入null字段??)select1, TO_DATE(null)fromdual;--实际时间2012-12-04 1...
分类:
数据库 时间:
2014-06-27 21:24:14
阅读次数:
292
First, update the attribute input type to multiselect:UPDATE eav_attribute SETentity_type_id = '4',attribute_model = NULL,backend_model = 'eav/entity_...
分类:
其他好文 时间:
2014-06-25 14:13:24
阅读次数:
285
今天在MySQL中用hibernate测试update语句发现以下问题: update语句竟然不去作用;表机构如下:create table student(sid int primary key , sname varchar(45) not null, ssex char(2) not nul....
分类:
系统相关 时间:
2014-06-25 13:58:02
阅读次数:
352
private bool Compare(object o1, object o2) { if (o1 == null) { if (o2 == null) { ...
分类:
其他好文 时间:
2014-06-25 13:44:23
阅读次数:
164
引言今天在客户这儿,由一个问题导致,需求的变化,不得不修改代码,在记录日志中出现该问题。原因通过id查找相关信息,没有判断是否为null,集合是否有数据。Object reference not set to an instance of an object.翻译:未将对象引用设置到对象的实例。总结...
分类:
其他好文 时间:
2014-06-25 13:18:31
阅读次数:
155
public class Test {public static void main(String[] args) { String s=null; //字符缓冲区,System.in系统输入 BufferedReader bf=new BufferedReader(new Input...
分类:
其他好文 时间:
2014-06-25 11:54:17
阅读次数:
186
更新到Android 4.4,写了个小程序。发现运行不起来了。抛空指针异常。debug模式下,发现在onCreate方法中获取Button是null。Android 4.4把layout进行了重组,全部放到了Fragment下,在onCreate方法执行时,Fragment还没有被调用,所以在这个方...
分类:
移动开发 时间:
2014-06-25 11:08:26
阅读次数:
361
prepare("show tables;");//准备预处理sql语句 $obj->execute();//执行预处理语句 $obj->fetchALL(PDO::FETCH_ASSOC);//获取结果集 #.插入 $obj = null; $sql = ...
分类:
数据库 时间:
2014-06-25 09:23:42
阅读次数:
244
昨天看到strcpy函数的典型实现时,发现该函数的返回值为局部指针变量,当时产生疑问:局部指针在函数结束时不是会被注销掉吗?为什么此处没有呢?
下面给出strcpy函数代码:
char* Mystrcpy(char* strDest, const char* strSrc)
{
assert((strDest!= NULL)&&(strSrc != NULL));
char* adress...
分类:
其他好文 时间:
2014-06-25 07:18:50
阅读次数:
184
str1 = ""str2 = Nonestr3 = "hello"if str2: print "not null"else: print "null"这样,不仅可以判定字符串是否为空,还能判定是否为None
分类:
编程语言 时间:
2014-06-25 00:57:06
阅读次数:
240