如果你的需要是统计总行数时,为什么要使用count(*),而避免使用指定具体的列名?count()函数里面的参数是列名的的时候,那么会计算有值项的次数。也就是,该列没有值的项并不会进入计算范围。这样的话,你想统计的行数并不准确。更重要的是,还会增加消耗。因为,需要判断扫描所有行才知道值是否有值。如果...
分类:
数据库 时间:
2014-05-08 19:11:22
阅读次数:
319
-(void) bringSublayerToFront:(CALayer*)layer{[layer
removeFromSuperlayer];[self insertSublayer:layer atIndex:[self.sublayers
count]-1];}-(void) sendSu...
分类:
移动开发 时间:
2014-05-08 14:01:24
阅读次数:
386
内容来源:http://blog.csdn.net/azhao_dn/article/details/6921429在hive上执行查询:select
count(*) from user_active_vv_20110801_31 where active_type_3>0 UNION ALL s...
分类:
其他好文 时间:
2014-05-07 20:26:30
阅读次数:
460
开始学习模板元编程了
#include
#include
#include
#include
#include "boost/assign/list_of.hpp"
#include "boost/type_traits/is_const.hpp"
#include "boost/type_traits/is_reference.hpp"
#include "boost/type_tr...
分类:
其他好文 时间:
2014-05-07 16:32:27
阅读次数:
358
23.1 介绍
Spring提供了一个JSM集成框架,简化了JMS API的使用。这点很像Spring对JDBC的集成。
JMS大致提供生产消息和消费消息两类功能。JmsTemplate类用来生产消息和同步接收消息【译注:接收消息也就是消费消息】。为了异步接收消息(异步接收消息类似于JavaEE的消息驱动Bean(Message-Driven Bean,MDB),Spring提供了一组消息监听器容器(messagelistener containers),用来创建多个消息驱动POJO(Message-D...
分类:
编程语言 时间:
2014-05-07 15:39:58
阅读次数:
666
引用是别名而非指针,引用与指针的区别:1、不存在空引用2、所有的引用都要初始化3、一个引用永远指向用来对它初始化的那个对象本文地址:http://www.cnblogs.com/archimedes/p/cpp-reference.html,转载请注明源地址。引用是一个现有对象的别名,用对象来初始化...
分类:
编程语言 时间:
2014-05-07 13:38:31
阅读次数:
318
#include using namespace std;#define Max(a, b)((a
> b)? a : b)int count = 9;int nMax = Max(count++, ++count);int main(){
cout<<count<<endl; cout<<...
分类:
其他好文 时间:
2014-05-07 11:07:48
阅读次数:
242
原文地址:http://blog.csdn.net/wuchen_net/archive/2010/03/23/5409327.aspx1.
ReferenceEquals, == , Equals Equals , == ,
ReferenceEquals都可以用于判断两个对象的个体是不是相等。a...
分类:
其他好文 时间:
2014-05-07 01:46:25
阅读次数:
477
1,有几位数字
#include
int main_2_1_digit(){
int n;
while(scanf("%d",&n)){
int count = 0;
if(n==0)
count = 1;
while(n){
count++;
n/=10;
}
printf("%d\n",count);
}
return 0;
}
...
分类:
其他好文 时间:
2014-05-06 21:20:19
阅读次数:
374
两者都是添加子视图,视图的添加都是以栈的方式,即后进先出。
addSubview 是将view加到所有层的最顶层
相当于将insertSubview的atIndex参数设置成view.subviews
count
insertSubview:AtIndex:是根据索引添加到栈里面,可以根据需要添加到对应的栈的位置里面。
总结:
addSubview是加到最后
...
分类:
其他好文 时间:
2014-05-06 19:50:50
阅读次数:
279