在数据库查询中,经常遇到计算2个日期相差值,SQL提供一个非常有用的函数:TIMESTAMPDIFFT。 基本语法:TIMESTAMPDIFF(interval,datetime_expr1,datetime_expr2) 其中,interval的取值可以为:SECOND, MINUTE...
分类:
数据库 时间:
2015-12-22 17:44:14
阅读次数:
1606
1、UML面向对象建模过程思路first:通过需求分析,熟悉业务流程,可画出BPMN或者UML活动图second:画出用例图third:分析用例图找出确定的类以及相关类,以及参与者类;创建这些类的关联,画出初始类图;将有相同功能的类提取父类,形成继承或接口;类加关联多重性。-----上面三点是业务过...
分类:
其他好文 时间:
2015-12-21 18:08:25
阅读次数:
176
present一个半透明的UIViewController,跟add个view差不多的意思,一般会遇到的问题是跳转到下一个页面加载完背景色又变回去了,没有半透明的效果,加上一句代码就好了。1,present 一个UIViewControllerSecondViewController *second...
分类:
其他好文 时间:
2015-12-21 15:55:09
阅读次数:
127
Bulb SwitcherThere arenbulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you to...
分类:
编程语言 时间:
2015-12-20 17:23:11
阅读次数:
152
题目:
There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it's off or turni...
分类:
其他好文 时间:
2015-12-20 07:10:34
阅读次数:
162
DescriptionProblem FSupermeanTime Limit: 2 second"I have not failed. I've just found 10,000 ways that won't work."Thomas EdisonDo you know how to comp...
分类:
其他好文 时间:
2015-12-13 16:59:13
阅读次数:
189
1084 - WinterPDF (English)StatisticsForumTime Limit:2 second(s)Memory Limit:32 MBWinter is coming. In a land far away,Nmen are spending the nights in ...
1079 - Just another RobberyPDF (English)StatisticsForumTime Limit:4 second(s)Memory Limit:32 MBAs Harry Potter series is over, Harry has no job. Since...
分类:
其他好文 时间:
2015-12-10 23:51:39
阅读次数:
247
function timeDown(second) { var month = '', day = '', hour = '', minute = ''; if (second >= 86400 * 30) { month = Math.fl...
分类:
编程语言 时间:
2015-12-08 18:08:12
阅读次数:
182
1214 - Large DivisionPDF (English)StatisticsForumTime Limit:1 second(s)Memory Limit:32 MBGiven two integers,aandb, you should check whetherais divisib...
分类:
其他好文 时间:
2015-12-03 23:26:47
阅读次数:
384