码迷,mamicode.com
首页 >  
搜索关键字:when    ( 7148个结果
sql case when 用法
sql语言中有没有类似C语言中的switch case的语句?? 没有,用case when 来代替就行了. 例如,下面的语句显示中文年月 select getdate() as 日期,case month(getdate()) when 11 then '十一' when 12 th...
分类:数据库   时间:2014-07-11 21:21:53    阅读次数:247
整形提升(c语言基础)
When you use an arithmetic operator, the operands go through two conversions.Integer promotions: If int can represent all values of the type, then the...
分类:编程语言   时间:2014-07-09 13:46:00    阅读次数:278
将数据库中的数字显示为文字
我们在数据库中常常会有这样的规定,1表示男,0表示女。但是在页面肯定不能显示0或1.就必须在显示之前将集合中关于性别的数字转化为男,女。 在这里项目用了三种方式。 第一种:在查询sql时就将字段转化过来。如下sql: CASE WHEN ta.sex ='1' THEN '男' WHEN ta.sex ='0' THEN '女' END AS se...
分类:数据库   时间:2014-07-09 11:34:30    阅读次数:605
php之foreach遍历数组
foreach (PHP 4, PHP 5) The foreach construct provides an easy way to iterate over arrays. foreach works only on arrays and objects, and will issue an error when you try to use it on a variable w...
分类:Web程序   时间:2014-07-08 19:52:38    阅读次数:291
POJ 3176:Cow Bowling
Cow Bowling Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 13464   Accepted: 8897 Description The cows don't use actual bowling balls when they go bowling...
分类:其他好文   时间:2014-07-08 18:00:15    阅读次数:230
POJ-1324-Holedox Moving(BFS)
Description During winter, the most hungry and severe time, Holedox sleeps in its lair. When spring comes, Holedox wakes up, moves to the exit of its lair, comes out, and begins its new life.  Hol...
分类:其他好文   时间:2014-07-08 17:28:54    阅读次数:256
TI_DSP_SRIO - Doorbell原理(中断路由到core-1)
Doorbell的中断到core的机制是由DOORBELLx_ICRRx寄存器实现的,共有八个ICRR寄存器。 When doorbell packets are received by the SRIO peripheral, these ICRRs route doorbell interrupt requests(在ISCR寄存器中指示) from the associated doo...
分类:其他好文   时间:2014-07-08 16:36:13    阅读次数:419
Visual Studio 2013 与 14
Visual Studio 2013 与 14 如果 Install Visual Studio on the same computer as Visual Studio in 2013 "14" when CTP 14.0.21730.1 DP, a number of known issues. While we expect that the Visual Stu...
分类:其他好文   时间:2014-07-08 16:09:04    阅读次数:196
学习 OAuth2.0 笔记( 一 )
1.1. Roles 角色 OAuth defines four roles: OAuth 设定了四个角色 resource owner 资源拥有者 An entity capable of granting access to a protected resource. When the resource owner...
分类:其他好文   时间:2014-07-08 14:29:22    阅读次数:227
Find the earliest time when a frog can jump to the other side of a river.
TaskdescriptionAsmallfrogwantstogettotheothersideofariver.Thefrogiscurrentlylocatedatposition0,andwantstogettopositionX.Leavesfallfromatreeontothesurfaceoftheriver.Youaregivenanon-emptyzero-indexedarrayAconsistingofNintegersrepresentingthefallingleaves.A[K]..
分类:其他好文   时间:2014-07-08 12:08:25    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!