`
timeflowing
  • 浏览: 2611 次
  • 性别: Icon_minigender_1
  • 来自: 重庆
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
在Oracle中,如果表的某一条数据的字段A值为空,以A值为条件查询的话,不管条件是 A='XXX' 还是 A<>'XXX' 都查不到该条数据:      select * from table where A='XXX'      select * from table where A<>'XXX' 可以用nvl函数将A转换后再比较      select * from table where nvl(A,0)='XXX' 或者      select * from table where A is null or A='XXX'
setTimeOut() 传递参数: /* * 先从正常的延时执行说起,以下代码会在2s后弹出true,OK */ function st(){ alert(true); } setTimeout(st, 2000); /* * 下面的代码也会弹出true,但不OK,因为延时没有起作用 */ function st(arg){ alert(arg); } setTimeout(st(true), 2000); /* * 解决方法之一,这种方法可以应付参数为字符串型的,对object型就不OK了 */ function st(arg){ alert(arg); } setTimeout(‘s ...
Global site tag (gtag.js) - Google Analytics