码迷,mamicode.com
首页 >  
搜索关键字:where case when    ( 36516个结果
Sql_Server中如何判断表中某列是否存在
/*判断表AA中是否存在AA_ID这一列,如果不存在,则新增*/ IF NOT EXISTS (SELECT 1 FROM syscolumns INNER JOIN sysobjects ON sysobjects.id = syscolumns.id WHERE syscolumns.name = 'AA_ID' AND sysobjects.name = 'AA') ALTER TA...
分类:数据库   时间:2014-05-07 07:33:47    阅读次数:373
10g full join 优化
今天一个女生咨询我报名学优化。聊着聊着就让我优化一个sql,贴给大家看一下 select (case when grouping(allwo.workshop_code) = 1 then '' else nvl(max(allwo.workshop_code), '未维护车间') end) worksho...
分类:其他好文   时间:2014-05-07 06:45:47    阅读次数:398
Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in the code, print the sequence of gr...
分类:其他好文   时间:2014-05-07 06:10:17    阅读次数:370
POJ2411:Mondriaan's Dream(状态压缩)
Description Squares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the drawings in his 'toilet series' (where he had to use his toilet paper to draw on,...
分类:其他好文   时间:2014-05-07 05:16:29    阅读次数:385
SQL SERVER命令总结
SQL SERVER命令总结 查询语句: SELECT [ALL/DISTINCT][TOP]    [as 别名][, as 别名]… FROM [as 别名]… [WHERE 条件表达式…] [GROUP BY [HAVING]] [ORDER BY[ASC/DESC]] 应该注意:SELECT语句的顺序: SELECT-->FROM-->WHERE-->GROUP B...
分类:数据库   时间:2014-05-07 04:32:52    阅读次数:561
[ACM] poj 2096 Collecting Bugs (概率DP,期望)
Collecting Bugs Time Limit: 10000MS   Memory Limit: 64000K Total Submissions: 2026   Accepted: 971 Case Time Limit: 2000MS   Special Judge Description Ivan is fond o...
分类:其他好文   时间:2014-05-07 04:29:43    阅读次数:450
需求用例分析之级别设置
在《编写有效用例》(阿莱斯特-科伯恩著,以下用科伯恩用例来指代)一书中,赋予了用例不同的级别,科伯恩形象的设定了如下级别:海平面、云朵、风筝、蛤等等。  科伯恩建议用例级别分为多个个目标层次:概要、用户目标、子功能,书写需求用例时,只能选择其一,下面对其具体说明: 概要:包括多个用户目标,它有“显示相关目标的生命周期顺序”和“为低层用例提供一个目录表”的功能,概要用例通常需要执行几...
分类:其他好文   时间:2014-05-07 04:19:14    阅读次数:330
Verilog之case语句
verilog设计进阶 时间:2014年5月6日星期二   主要收获: 1.学会使用case语句; 2.学会使用随机函数$random。   $random: 1.函数说明:$random函数调用时返回一个32位的随机数,它是一个带符号的整形数。 2.产生0~59之间的随机数的例子: reg[23:0]rand; rand={$random}% 60; 3.产生一个在min...
分类:其他好文   时间:2014-05-06 21:39:28    阅读次数:353
回顾sql语句中的各种连接
1. 内连接(Inner Join) 内连接是最常见的一种连接,它页被称为普通连接,而E.FCodd最早称之为自然连接。 下面是ANSI SQL-92标准 select * from    t_institution i inner join t_teller t on i.inst_no = t.inst_no where i.inst_no = "5801" 其中inn...
分类:数据库   时间:2014-05-06 21:38:01    阅读次数:428
zoj Treasure Hunt IV
Treasure Hunt IVTime Limit:2 Seconds Memory Limit:65536 KBAlice is exploring the wonderland, suddenly she fell into a hole, when she woke up, she foun...
分类:其他好文   时间:2014-05-06 18:08:39    阅读次数:290
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!