mysql数据库 -- 关系型数据库--表,字段,行
mongodb数据库 -- 非关系型数据库--集合,域,文档
mongodb的使用步骤:
1.安装
2.指定数据库的安装位置(创建一个文件夹...如果有排序,先排序,再做其他的跳过操作
/*model.find({},{name:1,sex:1,age:1,_id:0},{limit:4,skip:1,sort:{age:-1}},function...select 字段1, 字段2, ..., 字段n from 表名
例如: select name, gender from student
3.根据某个条件进行查找
select * from 表名...where 字段 = 值
例如: select * from student where gender = '女'
4.根据多个条件进行查找
select * from 表名 where 字段1 =...limit 条数
例如: select * from student limit 2
13.对查询的结果进行排序
升序: select * from 表名 order by 字段 asc
降序: select