上一页 1 ··· 11 12 13 14 15
摘要: var arr = new Array(); arr.push(1); arr.push(2); arr.push(3); var rs = arr.filter(function (value,index,self){ if(value!=1){ return true; } else{ return false; } }) //arr执... 阅读全文
posted @ 2016-10-18 19:50 suruozhong 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Oracle 查询今日、昨日、本周、本月和本季度的所有记录 字段类型为date 今日 select * from 表名 where to_char(字段名,'dd')=to_char(sysdate,'dd') 昨日 select * from 表名 where to_char(字段名,'dd')= to_char(sysdate-1,'dd') 本周 select * from 表名 ... 阅读全文
posted @ 2016-10-18 19:38 suruozhong 阅读(10960) 评论(0) 推荐(1) 编辑
摘要: 今天的所有数据:select * from 表名 where DateDiff(dd,datetime类型字段,getdate())=0 昨天的所有数据:select * from 表名 where DateDiff(dd,datetime类型字段,getdate())=1 7天内的所有数据:select * from 表名 where DateDiff(dd,datetime类型字段,getd... 阅读全文
posted @ 2016-10-18 19:37 suruozhong 阅读(68315) 评论(0) 推荐(5) 编辑
上一页 1 ··· 11 12 13 14 15