1.select sum(CASE WHEN A.[STATUS]=0 THEN 1 ELSE
0 end) as a1,sum(CASE A.[STATUS] WHEN 1 THEN 1 ELSE 0 end) as a2,sum(CASE
A.[STATUS] WHEN 2 THEN 1 ELS...
分类:
数据库 时间:
2014-06-04 21:10:46
阅读次数:
513
You are climbing a stair case. It takesnsteps
to reach to the top.Each time you can either climb 1 or 2 steps. In how many
distinct ways can you climb...
分类:
其他好文 时间:
2014-06-04 19:53:34
阅读次数:
173
dx是一套简单的开发规则。它说白了就是迭代开发,在短周期内迭代处理”所有事情“,这里所指的”所有事情“包括需求、分析、设计、实现、测试和文档等等。它的大概流程是这样:1.
初始探索 跟客户坐下来一起讨论系统到底是做什么的。在这个过程中,识别出系统的use-case也就是我们所说的user-stor....
分类:
编程语言 时间:
2014-05-30 11:07:43
阅读次数:
338
本文希望通过简单的总结,把常用的查询方法予以总结,希望能够明确在心主要涵盖:模糊查询、排序、分组、集合函数、TOP、Case包括:Between、In、Like、And、Or、Order
by包括:Group by、Distinct、MAX\MIN、Avg、Count、Sum、Having、Top、...
分类:
数据库 时间:
2014-05-29 23:13:46
阅读次数:
456
string sqlStr = "update sys_case t set t.content
=:CONTENT,t.property=:PROPERTY where id=:ID"; OracleParameter[] parameterValue =
{ ...
分类:
数据库 时间:
2014-05-29 12:18:04
阅读次数:
283
if we want to filter with sed pattern and just
print the filtered lines without any further editing , we can do it like thisls
-a1 ~ | sed -ne "/^\./p...
分类:
其他好文 时间:
2014-05-28 22:58:56
阅读次数:
294
原题地址:https://oj.leetcode.com/problems/climbing-stairs/题意:You
are climbing a stair case. It takesnsteps to reach to the top.Each time you can
either cl...
分类:
编程语言 时间:
2014-05-28 03:27:49
阅读次数:
267
/g意思就是:global可选标志,带这个标志表示替换将针对行中每个匹配的串进行,否则则只替换行中第一个匹配串。如:we.fdffddfwe.加上/g后,则2个we都会出来;/i意思就是
case insensitive,区分大小写小字。如:sw与sW不管;/d意思是digital.是一个数字如:/...
分类:
其他好文 时间:
2014-05-27 16:57:49
阅读次数:
234
很多朋友喜欢一种修改魔兽世界,世界喊话的方式,就是修改官员喊话频道以前最老的Mangos端的方式也是这种,就直接修改/o
官员喊话频道这个也是魔兽世界私服中常用到的方式之一1、首先找到ChatHandler.cpp 这个TrinityCore中的文件。然后找到case
CHAT_MSG_OFFICE...
分类:
其他好文 时间:
2014-05-26 18:15:18
阅读次数:
314
【题目】
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is defined as a character sequence consists of non-space ...
分类:
其他好文 时间:
2014-05-25 07:39:05
阅读次数:
256