码迷,mamicode.com
首页 >  
搜索关键字:where case when    ( 36516个结果
提高SQL语句查询效率
1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在num...
分类:数据库   时间:2014-05-01 13:23:55    阅读次数:443
[ACM] POJ2352 [树状数组稍微变形]
DescriptionAstronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level...
分类:其他好文   时间:2014-05-01 05:42:32    阅读次数:368
Pat(Advanced Level)Practice--1063(Set Similarity)
Pat1063代码 题目描述: Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared by the two sets, and Nt is the to...
分类:其他好文   时间:2014-04-29 13:44:20    阅读次数:325
设计模式之State模式
State模式定义:       允许一个对象在状态改变是,改变它的行为。看起来对象似乎修改了它的类。     模式理解(个人):       State模式主要解决的事在开发中时常遇到的根据不同状态需要进行不同的处理操作的问题,而这样的问题,大部分人会采用switch-case语句进行处理,这样会造成一个问题:分支过多,而且如果加入一个新的状态就需要对原来的代码进行编译。State...
分类:其他好文   时间:2014-04-29 13:34:21    阅读次数:285
NSPredicate的使用
NSPredicate:对self每个对象通过谓词进行筛选,判断是否与条件相匹配。原理和用法都类似于SQL查询中的where,作用相当于数据库的过滤取。主要用于从集合中分拣出符合条件的对象,也可以用于字符串的正则匹配 第一、contains 判断         NSArray *array = [[NSArray alloc]initWithObjects:@"beijing",@"s...
分类:其他好文   时间:2014-04-29 13:32:23    阅读次数:375
苹果通知推送服务(APNS)关键特性摘要
1. If APNs attempts to deliver a notification but the device is offline, the notification is stored for a limited period of time, and delivered to the device when it becomes available. 假如用户手机不在线,可能没有...
分类:移动开发   时间:2014-04-28 10:38:40    阅读次数:582
Sdut 2409 The Best Seat in ACM Contest(山东省第三届ACM省赛 H 题)(模拟)
题目描述 Cainiao is a university student who loves ACM contest very much. It is a festival for him once when he attends ACM Asia Regional Contest because he always can find some famous ACMers there. C...
分类:其他好文   时间:2014-04-28 10:33:40    阅读次数:340
poj 3468 A Simple Problem with Integers
A Simple Problem with Integers Time Limit: 5000MS   Memory Limit: 131072K Total Submissions: 55626   Accepted: 16755 Case Time Limit: 2000MS Description You have N...
分类:其他好文   时间:2014-04-28 10:23:41    阅读次数:282
poj 3264 Balanced Lineup
Balanced Lineup Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 32070   Accepted: 15090 Case Time Limit: 2000MS Description For the daily milking, Far...
分类:其他好文   时间:2014-04-27 22:44:53    阅读次数:302
避免nrpe端进程监控多个接口
为了避免目标端nrpe进程监控多个接口而造成的安全漏洞。有必要固定服务端的地址,对nrpe.cfg配置中,有下列一行介绍 #SERVER ADDRESS # Address that nrpe should bind to in case there are more than one interface # and you do not want nrpe to bind on all in...
分类:其他好文   时间:2014-04-27 22:36:17    阅读次数:454
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!