V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  lezu  ›  全部回复第 1 页 / 共 1 页
回复总数  5
2011-02-17 13:10:22 +08:00
回复了 jzhone 创建的主题 分享发现 原盛大边锋总裁许朝军创业项目点点网
2010-12-02 13:26:22 +08:00
回复了 lezu 创建的主题 MySQL MongoDB => SQL
Querying Data
$res = $col->find(); SELECT * FROM `$tbl`
$doc = $col->findone(array('_id' => $id)); SELECT * FROM `$tbl` WHERE `id` = {$id}
$res = $col->find()->limit(1); SELECT * FROM `$tbl` LIMIT 1
$res = $col->find()->skip(1)->limit(1); SELECT * FROM `$tbl` OFFSET 1 LIMIT 1;
$res = $col->find()->sort(array('login' => -1)); SELECT * FROM `$tbl` ORDERBY `login` DESC //-1=DESC,1=ASC
$res = $col->find(array('age' => array('$lt' => 30))); SELECT * FROM `$tbl` WHERE `age` < 30 //$lt:<,$gt:>,$gte:>=, $lte:<=, $ne:!=
$doc = $col->find(array(’a'=>’hello’,'b’=>1)); SELECT * FROM `$tbl` WHERE `a` = ‘hello’ AND `b`=1
$doc = $col->find(array(’a'=>’hello’,'b’=>array(’$gt’=>1))); SELECT * FROM `$tbl` WHERE `a` = ‘hello’ AND `b`>=1
$res = $col->find(array('age' => array('$gte' => 20, '$lte' => 50))); SELECT * FROM `$tbl` WHERE `age` >= 20 AND `age` <= 50
$col->remove(array('age'=>24),array('justOne'=>true,'safe'=>true)); DELETE FROM `$tbl` WHERE `login` = 'psmith'
2010-11-15 17:30:29 +08:00
回复了 plidezus 创建的主题 分享创造 跟朋友合作的二手书交换网站,有兴趣的各位来内测啦~
[email protected],杭州,.net的共享出去……
2010-10-26 13:40:09 +08:00
回复了 shawiz 创建的主题 分享发现 宽途
谁能给我一个邀请?
2010-10-14 17:30:18 +08:00
回复了 itopidea 创建的主题 PHP XenForo 一个很不错的论坛
看看

还不错
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3196 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 19ms · UTC 13:25 · PVG 21:25 · LAX 05:25 · JFK 08:25
Developed with CodeLauncher
♥ Do have faith in what you're doing.