摘要:一、查询 find方法 db.collection_name.find(); 查询所有的结果: select * from users; db.users.find(); 指定返回那些列(键): select name, skills from users; db.users.find({}, {'
阅读全文
posted @ 2018-08-10 10:58
|
||
08 2018 档案
摘要:一、查询 find方法 db.collection_name.find(); 查询所有的结果: select * from users; db.users.find(); 指定返回那些列(键): select name, skills from users; db.users.find({}, {'
阅读全文
posted @ 2018-08-10 10:58
摘要:依据记录总数和每页大小取页数例如:总记录数为totalrow,每页显示数为pagesize,现在要求总页数totalpage1 常用方法:整除,判断余数,余数大于0,整除结果加1。 这种计算方法,会导致程序先取余数,再比较是否有余数,再进行整除操作,然后再进行相加操作2 今天无意间发现还有另外一种计
阅读全文
posted @ 2018-08-02 15:13
|
||