码迷,mamicode.com
首页 >  
搜索关键字:when    ( 7148个结果
A problem is easy
描述When Teddy was a child , he was always thinking about some simple math problems ,such as “What it’s 1 cup of water plus 1 pile of dough ..” , “100 y...
分类:其他好文   时间:2014-11-15 06:32:43    阅读次数:127
建造模式
原文地址:http://leihuang.net/2014/11/09/Builder-Pattern/ The builder pattern is a good choice when designing classes whose constructors or static factories would have more than a handful of parameter...
分类:其他好文   时间:2014-11-14 17:53:06    阅读次数:251
禁止使用finalize方法
原文地址:http://leihuang.net/2014/11/13/Avoid-Finalizers/ Don´t use Finalizers, mainly because are unpredictable and we don´t know when will be executed, "don't try to be smarter than the JVM" ...
分类:其他好文   时间:2014-11-14 17:51:48    阅读次数:328
POJ 3176 Cow Bowling (简单DP)
Cow Bowling http://poj.org/problem?id=3176 Time Limit: 1000MS Memory Limit: 65536K Description The cows don't use actual bowling balls when they go bowling. They each ta...
分类:其他好文   时间:2014-11-14 17:50:52    阅读次数:224
空值排序问题
【sqlserver】:sqlserver 认为 null 最小。升序排列:null 值默认排在最前。要想排后面,则:order by case when col is null then 1 else 0 end ,col亲测可用降序排列:null 值默认排在最后。要想排在前面,则:orderby...
分类:编程语言   时间:2014-11-14 17:18:10    阅读次数:231
SQL CHECK 约束&Case when 的使用方法
1.CHECK 约束SQL CHECK 约束CHECK 约束用于限制列中的值的范围。如果对单个列定义 CHECK 约束,那么该列只允许特定的值。如果对一个表定义 CHECK 约束,那么此约束会在特定的列中对值进行限制。SQL CHECK Constraint on CREATE TABLE下面的 S...
分类:数据库   时间:2014-11-14 12:05:40    阅读次数:222
HDU 3333 Turing Tree(离线线段树)
Problem Description After inventing Turing Tree, 3xian always felt boring when solving problems about intervals, because Turing Tree could easily have...
分类:其他好文   时间:2014-11-14 06:55:49    阅读次数:227
HDU 3333 Turing Tree(离线线段树)
Problem Description After inventing Turing Tree, 3xian always felt boring when solving problems about intervals, because Turing Tree could easily have the solution. As well, wily 3xian made lots of...
分类:其他好文   时间:2014-11-14 01:41:02    阅读次数:169
Thread.Start和Delegate.BeginInvoke 以及Control.BeginInvoke
Thread.Start starts a new OS thread to execute the delegate. When the delegate returns, the thread is destroyed. This is quite a heavy-weight operatio...
分类:其他好文   时间:2014-11-13 20:33:57    阅读次数:159
sql case when...then...else...end 选择判断
达到的需求为:吓数收回日期为空:当接单日期不等于空和当天减接单日期大于3天时,为1,否则为0;当接单日期为空、最大发织交期不等于空和当天减去最大发织交期大于3天时,为1,否则为0;当接单日期和发织交期都为空,为1,否则为0;吓数收回日期不为空,为0。case when (isnull(v._RDat...
分类:数据库   时间:2014-11-13 18:30:00    阅读次数:264
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!