码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果
oracle时间处理
--查询日期语言种类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
How to change a product dropdown attribute to a multiselect in Magento
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
Hibernate 中update hql语句
今天在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
关于C# 比较的判断
private bool Compare(object o1, object o2) { if (o1 == null) { if (o2 == null) { ...
分类:其他好文   时间:2014-06-25 13:44:23    阅读次数:164
[Bug]Object reference not set to an instance of an object.
引言今天在客户这儿,由一个问题导致,需求的变化,不得不修改代码,在记录日志中出现该问题。原因通过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
变更到Android4.4的问题
更新到Android 4.4,写了个小程序。发现运行不起来了。抛空指针异常。debug模式下,发现在onCreate方法中获取Button是null。Android 4.4把layout进行了重组,全部放到了Fragment下,在onCreate方法执行时,Fragment还没有被调用,所以在这个方...
分类:移动开发   时间:2014-06-25 11:08:26    阅读次数:361
PHP - PDO 之 mysql 基础操作
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
python--字符串为空
str1 = ""str2 = Nonestr3 = "hello"if str2: print "not null"else: print "null"这样,不仅可以判定字符串是否为空,还能判定是否为None
分类:编程语言   时间:2014-06-25 00:57:06    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!