码迷,mamicode.com
首页 >  
搜索关键字:switch case    ( 15339个结果)
走向面试之经典的数据库基础:二、SQL进阶之case、子查询、分页、join与视图
一、CASE的两种用法1.1等值判断->相当于switch case (1)具体用法模板: CASE expression WHEN value1 THEN returnvalue1 WHEN value2 THEN returnvalue2 WHEN valu...
分类:数据库   时间:2014-08-23 02:19:29    阅读次数:368
HDU 1047 Integer Inquiry 大数相加 string解法
本题就是大数相加,题目都不用看了。 不过注意的就是HDU的肯爹输出,好几次presentation error了。 还有个特殊情况,就是会有空数据的输入case。 #include #include #include #include #include #include #include #include #include #include #include using...
分类:其他好文   时间:2014-08-23 01:09:59    阅读次数:178
数据查询分组、按月份,天,小时
SELECT year(payment_date),sum(CASE month(payment_date) WHEN 01 THEN amount END) '一月份销售额',sum(CASE month(payment_date) WHEN 02 THEN amount END) '二月份销售额...
分类:其他好文   时间:2014-08-22 19:19:29    阅读次数:242
SQL存在一个表而不在另一个表中的数据
select a.id,a.oacode,a.custid,a.custname,a.xsz,a.salename,a.communicationtheme,a.communicationproperty,a.communicationtime,a.productmanager,'' creator,a.creator oaCreator,a.createdate,case when a.oast...
分类:数据库   时间:2014-08-22 17:54:09    阅读次数:202
软件下载地址记录
http://archive.apache.org/dist/ftp://mirror.switch.ch/mirror/
分类:其他好文   时间:2014-08-22 14:38:39    阅读次数:123
How to download the installation package by ZOL Downer
Recently, Zhongguancun Online distributed theZOL Downer for users to download the resources from ZOL. In this case, userscan just download the ZOL downer with the code of resources, not theinstallation packages. But if someone want toinstall the PC wh...
分类:其他好文   时间:2014-08-22 12:55:58    阅读次数:548
C语言写俄罗斯方块源码——————【Badboy】
#include #include #include char x,y,ty,ty1,zhuan,line1=0,line2=0,ss[16],hol[10][29]={0},a[4][2]={0}; int score1=0,speed=1000; void unit(char,char,char);           void dl(int); void block(cha...
分类:数据库   时间:2014-08-22 10:57:46    阅读次数:358
MySQL中order by的实现 和 by rand() 和优化
“MySQL 里面的order by rand()”是怎么实现的。我们今天来简单说说MySQL里的order by。 几种order by的情况 香格里拉娱乐城 乍一看这个问题好像有点复杂,我们从最简单的case开始看起。 用这个表来说明:(10w行数据)1、 最简单的order ―― order ...
分类:数据库   时间:2014-08-22 10:31:36    阅读次数:191
SQL 导出数据字典
用于参考:SELECT 表名=case when a.colorder=1 then d.name else '' end, 表说明=case when a.colorder=1 then isnull(f.value,'') else '' end, 字段序号=a.colorder, 字段...
分类:数据库   时间:2014-08-22 09:18:25    阅读次数:257
Perl语言学习笔记 15 智能匹配与give-when结构
1、智能匹配操作符 替代绑定操作符: 在哈希中查找某一个键: 比较两个数组是否完全相同: 查找列表中是否存在某个元素: 智能匹配操作符与顺序无关,~~ 左右元素可以互换 2、智能操作符优先级 3、given语句 相当于c语言的switch语句 4、given可以测试多个条件,在default前用break,否则会导致default一直执行 5、笨拙匹...
分类:其他好文   时间:2014-08-22 00:25:55    阅读次数:181
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!