第一种SELECT title,SUM(CASE typeid WHEN '1' THEN gjdate ELSE 0 END) AS '调休',SUM(CASE typeid WHEN '2' THEN gjdate ELSE 0 END) AS '请假',SUM(CASE typeid WH.....
分类:
数据库 时间:
2015-03-13 15:56:04
阅读次数:
159
一、中断初始化 1、中断向量表IDT的初始化void __init init_IRQ(void)
{
int i;
#ifndef CONFIG_X86_VISWS_APIC
init_ISA_irqs();
#else
init_VISWS_APIC_irqs();
#endif
/*
* Cover the whole vector space, no vector can...
分类:
系统相关 时间:
2015-03-13 09:24:36
阅读次数:
291
#c:\pyhone33
#Filename:def.py
#基本实现语句:
defprintMax(a,b):
ifa>b:
print(a),"ismaximum"
else:
print(b),"ismaximum"
printMax(3,4)
x=5
y=8
printMax(x,y)
#局限于语句块的赋值:
deffunc(x):
print("xis",x)
x=2
print("changedlocalxto",x)
x=50
func(x)
#使..
分类:
编程语言 时间:
2015-03-13 02:06:03
阅读次数:
166
Implementint sqrt(int x).Compute and return the square root ofx.思路:binary search ,柯西不等式√abx/mid) b=mid-1; else a=mid+1; } ...
分类:
其他好文 时间:
2015-03-13 00:06:21
阅读次数:
117
用preg_match来检查内容里是否有匹配的“/",$content)){ echo "检测到图片";}else{ echo "未发现图片";}
分类:
Web程序 时间:
2015-03-12 22:17:42
阅读次数:
144
3.1 分支结构3.1.1 if语句结构 if( ){ }else{ }3.1.2 条件运算符 condition ? expr1 : expr23.1.3 switch语句结构 switch( ){ case value1: ... [break;] c...
分类:
编程语言 时间:
2015-03-12 18:42:41
阅读次数:
129
if else 在 golangpackage mainimport ( "fmt")func main() { if 7%2 == 0 { fmt.Println("7 is even") } else { fmt.Println("7 is odd"...
分类:
其他好文 时间:
2015-03-12 14:50:46
阅读次数:
142
CREATE OR REPLACE PROCEDURE BJPJYXK_HF_SD( sqid_p IN VARCHAR2,--申请单ID xkbh_p IN VARCHAR2,--新生成的许可证编号 flag OUT VARCHAR2--标识位) AS ywlx VARCHAR2(50);--业....
分类:
其他好文 时间:
2015-03-12 14:45:30
阅读次数:
179
Access 中case when then else end不支持使用switch代替这里主要是实现一个表中多个字段,多个字段之间作比较然后取得最大值或者最小值用来处理case when then else end 例子selece f1,f2,(case when f1>f2 then f1 e...
分类:
数据库 时间:
2015-03-12 12:51:53
阅读次数:
158
递归法
#include
using namespace std;
void Merge(int r[],int r1[],int b,int m,int e){
int i=b;
int j=m+1;
int k=b;
while((i<=m)&&(j<=e)){
if(r[i]<=r[j]){
r1[k]=r[i];
i++;
k++;}
else{
r1[k...
分类:
编程语言 时间:
2015-03-12 11:32:51
阅读次数:
179