码迷,mamicode.com
首页 >  
搜索关键字:mongo count    ( 20577个结果
php 实现常用算法
//冒泡排序 从小到大对一组数排序function mp($array){ $count = count($array); if ($count $i; $k--) { if($array[$k] "; } return $...
分类:Web程序   时间:2014-05-23 05:39:26    阅读次数:284
Oracle、DB2、SQLSERVER、Mysql、Access分页SQL语句
最近把平时在项目中常用到的数据库分页sql总结了下。大家可以贴出分页更高效的sql语句。sqlserver分页第一种分页方法需用到的参数:pageSize 每页显示多少条数据pageNumber 页数 从客户端传来totalRecouds 表中的总记录数 select count (*) from ...
分类:数据库   时间:2014-05-22 04:21:33    阅读次数:348
main()函数中argv的理解及赋值
一、理解 C编译器允许main()函数没有参数,或者有两个参数(有些实现允许更多的参数,但这只是对标准的扩展)。参数argc(argument count)是int类型,表示命令行中的字符串数;argv(argument value)是一个指向字符串的指针数组。命令行中的每个字符串被存储到内存中,....
分类:其他好文   时间:2014-05-22 04:08:58    阅读次数:260
Linux Find用法
How to recursively count files in a linux directory?find DIR_NAME -type f | wc -lfind DIR_NAME -type f -print | wc -l查找包含alias字符串的*.conf的文件find / -nam...
分类:系统相关   时间:2014-05-22 03:52:45    阅读次数:422
Mybatis分页插件2.0版本发布
v2.0更新内容: 1.支持Mybatis缓存,count和分页同时支持(二者同步) 2.修改拦截器签名,拦截Executor,签名如下: @Intercepts(@Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class})) 3.将Page类移到外面,方便调用...
分类:其他好文   时间:2014-05-21 16:24:50    阅读次数:395
mongodb迁移
A机器上有mongodb服务,A机器要废,于是迁至B。 简单起见,依然是在A上ps auxwww|grep mongo找到正在运行的进程: /home/admin/mongodb/mongodb-linux-x86_64-2.2.0/bin/mongod -f /home/admin/mongodb/mongodb.conf 于是把/home/admin/mongodb/ 拷到B下。 在b...
分类:数据库   时间:2014-05-21 15:24:05    阅读次数:540
LeetCode: Count and Say [037]
【题目】 The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11. 11 is read off as "two 1s" or 21. 21 is read off as "one 2, then one 1" or 1211. Given an integer n, generate...
分类:其他好文   时间:2014-05-21 15:20:07    阅读次数:213
Mybatis分页插件2.0版本发布
v2.0更新内容: 1.支持Mybatis缓存,count和分页同时支持(二者同步) 2.修改拦截器签名,拦截Executor,签名如下: @Intercepts(@Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class})) 3.将Page类移到外面,方便调用...
分类:其他好文   时间:2014-05-21 14:40:56    阅读次数:408
UVA 10712 - Count the Numbers (数位DP)
UVA 10712 - Count the Numbers 题目链接 题意:求区间[A,B]数字中,子串包含N的数字有多少个 思路:数位DP,写了个记忆化乱搞搞过了,dp[i][j][2][2][2],分别表示i位的时候,末尾为j的情况,后面3维用来处理小于的情况,已经出现过子串的情况,前导0的情况,然后注意特判一下数字0的情况,因为一开始要分解数字,而0是不能分解的。 代...
分类:其他好文   时间:2014-05-21 09:11:44    阅读次数:264
C语言之深入指针与字符串
#include #include //要使用malloc(),必须包含此库文件 void main() { char count, *ptr1, *p; ptr1 = malloc(27*sizeof(char)); ptr1[26] = 0;//字符串要加0 if (ptr1 == NULL) { puts("没有足够的空间卡可以分配!\n"); } p = ptr1...
分类:编程语言   时间:2014-05-21 07:11:10    阅读次数:275
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!