- 博客(3)
- 收藏
- 关注
原创 oracle日期加1天
时间比较问题,通常边缘时间需要处理1.参数加一天参数:Date endTimeCalendar calendar = Calendar.getInstance();calendar.setTime(endTime);calendar.set(Calendar.HOUR_OF_DAY, 23);calendar.set(Calendar.MINUTE, 59);calendar....
2018-10-23 16:47:47 12294
原创 两个时间段取交集
背景:数据库存放一个时间段,参数传过来一个时间段,看是否有交集数据数据库:author_start、author_end 参数:startTime、endTime思路:1.正向思维:找两个区间的交集y.author_start<=endTime and (y.author_end + 1)>=startTime2.逆向思维:找出不冲突的时间取反...
2018-10-23 16:42:31 5945 2
原创 Oracle中的instr()函数 详解及应用
1)instr()函数的格式 (俗称:字符查找函数)格式一:instr( string1, string2 ) / instr(源字符串, 目标字符串)格式二:instr( string1, string2 [, start_position [, nth_appearance ] ] ) / instr(源字符串, 目标字符串, 起始位置, 匹配序号)解析:str...
2018-10-23 16:29:30 621
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人