lezu 最近的时间轴更新
lezu

lezu

V2EX 第 2266 号会员,加入于 2010-10-14 17:13:35 +08:00
lezu 最近回复了
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   ·   实用小工具   ·   5746 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 02:50 · PVG 10:50 · LAX 18:50 · JFK 21:50
Developed with CodeLauncher
♥ Do have faith in what you're doing.