摘要: MySql中时间比较的实现unix_timestamp 函数可以接受一个参数,也可以不使用参数。它的返回值是一个无符号的整数。不使用参数,它返回自1970年1月1日0时0分0秒到现在所经过的秒数,如果使用参数,参数的类型为时间类型或者时间类型的字符串表示,则是从1970-01-01 00:00:00到指定时间所经历的秒数。有了这个函数,就可以很自然地把时间比较转换为一个无符号整数的比较。例如,判断一个时间是否在一个区间内unix_timestamp( time ) between unix_timestamp( 'start ') and unix_timestamp(  阅读全文
posted @ 2013-08-08 15:30 水晶糖 阅读(223382) 评论(0) 推荐(1) 编辑
摘要: <c:if>的用途就和我们一般在程序中用的if一样。语法语法1:没有本体内容(body)<c:if test="testCondition" var="varName" [scope="{page|request|session|application}"]/>varName值为testCondition执行结果(布尔值)。语法2:有本体内容<c:if test="testCondition" [var="varName"] [scope="{page|r 阅读全文
posted @ 2013-06-19 12:49 水晶糖 阅读(5424) 评论(0) 推荐(0) 编辑
摘要: 桌面点击右键选中TortoriseSVN下的settings。选择saved data 右边clear authentication data,关掉。在登录一次。 阅读全文
posted @ 2012-08-14 14:30 水晶糖 阅读(236) 评论(0) 推荐(0) 编辑