码迷,mamicode.com
首页 >  
搜索关键字:mongodb find    ( 33964个结果
hackerrank---Find a string
题目链接在字符串a中查找字符串b出现的次数...貌似不可以用a.count()附上代码:1 a = raw_input().strip()2 b = raw_input().strip()3 cnt = 0;4 for i in xrange(len(a)):5 cnt += 1 if a....
分类:其他好文   时间:2014-05-14 04:13:06    阅读次数:308
数据库索引设计的几个常用算法
参考:http://blog.csdn.net/yangbutao/article/details/8372511B+、B- Tree(mysql,oracle,mongodb)主要用在关系数据库的索引中,如oracle,mysql innodb;mongodb中的索引也是B-树实现的;还有HBas...
分类:数据库   时间:2014-05-14 02:13:08    阅读次数:398
[LeetCode]Longest Valid Parentheses, 解题报告
题目 Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the longest valid parentheses substring is "()", ...
分类:其他好文   时间:2014-05-14 01:10:30    阅读次数:318
mongodb的写入,删除,更新
1. mongodb创建数据库和集合 mongodb数据库和集合的创建是隐式的。 意思是说不用单独写create database 语句。 直接使用use关键词即可。 在bin/mongo shell下运行:...
分类:数据库   时间:2014-05-13 00:28:12    阅读次数:445
0501-APP-launcher-shortcut
判断shutcut是否安装 "com.android.launcher.permission.READ_SETTINGS"/> 这段代码在模拟器上运行没有问题,但是在htc s510e运行报异常Failed to find provider info for com.android.launcher2.settings 通过但因htc所有包发现htc中的launcher被定制了改名为co...
分类:移动开发   时间:2014-05-12 23:58:28    阅读次数:625
菜鸟调错(四)——Spring与DWR集成,配置文件报错
Multiple annotations found at this line: - schema_reference.4: Failed to read schema document 'http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd', because 1) could not find the document;  2)...
分类:编程语言   时间:2014-05-12 22:55:47    阅读次数:409
Leetcode | Substring with Concatenation of All Words
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatena...
分类:其他好文   时间:2014-05-12 22:27:04    阅读次数:265
[leetcode]Minimum Depth of Binary Tree @ Python
原题地址:http://oj.leetcode.com/problems/minimum-depth-of-binary-tree/题意:Given a binary tree, find its minimum depth.The minimum depth is the number of no...
分类:编程语言   时间:2014-05-12 21:55:15    阅读次数:348
mongodb安装和配置
1. mongodb安装 mongodb的安装, 配置,启动,服务停止, 先下载mongodb,官网地址;http://www.mongodb.org/downloads curl -O http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.6.1.tgz...
分类:数据库   时间:2014-05-11 21:13:05    阅读次数:437
mongodb文档支持的数据类型
1. 存储类型 mongodb文档类似于json,但不是完全的json。 json只有六种类型:null, bool, 数字,字符串,数组,对象。 但是mongo的文档在json的基础上还扩展了几种类型, 比如,日期类型,整数,浮点数。 mongodb真正存储在磁盘上是使用bson(binary json)。...
分类:数据库   时间:2014-05-11 20:28:51    阅读次数:442
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!