日期:2014-05-16  浏览次数:20672 次

mongodb使用总结1

?

?

安装mongodb

$ # replace "1.6.4" in the url below with the version you want

$ curl http://downloads.mongodb.org/linux/mongodb-linux-x86_64-1.6.4.tgz > mongo.tgz

$ tar xzf mongo.tgz

$ cd mongo

$./mongod ?#启动服务器

$./mongo #启动客户端

?

?

?

?

?

1.mongodb 命令列表

? Mongo查询语法与SQL语法对照表

?

?

MySQL executable

Oracle executable

Mongo executable

mysqld?

oracle?

mongod?

mysql?

sqlplus?

mongo?

?

?

mongodb查询语法与SQL语法对比

?

SQL Statement?

Mongo Query Language Statement?

C++客户端调用语法

using namespace bson;

DBClientConnection c;

c.connect("somehost");

CREATE TABLE USERS (a Number, b Number)

db.createCollection("mycoll")

?

友情链接: 爱易网 云虚拟主机技术 云服务器技术 程序设计技术 开发网站 APP开发教程
Copyright © 2013-2026 爱易网页 当前在线:361人  网站在3时47分28秒内访问总人数:38106人 2秒前 39.50%  粤ICP备18100884号-2