note 98997 added to mongodb.command

From: Date: Wed, 21 Jul 2010 11:31:58 +0000
Subject: note 98997 added to mongodb.command
Groups: php.notes 
Request: Send a blank email to php-notes+get-171008@lists.php.net to get a copy of this message
rename a collection: $m = new Mongo(); $adminDB = $m->admin; //require admin priviledge //rename collection 'colA' in db 'yourdbA' to collection 'colB' in another db 'yourdbB' $res = $adminDB->command(array( "renameCollection" => "yourdbA.colA", "to" => "yourdbB.colB" )); var_dump($res); ---- Server IP: 69.147.83.197 Probable Submitter: 158.37.70.165 ---- Manual Page -- http://www.php.net/manual/en/mongodb.command.php Edit -- https://master.php.net/note/edit/98997 Del: integrated -- https://master.php.net/note/delete/98997/integrated Del: useless -- https://master.php.net/note/delete/98997/useless Del: bad code -- https://master.php.net/note/delete/98997/bad+code Del: spam -- https://master.php.net/note/delete/98997/spam Del: non-english -- https://master.php.net/note/delete/98997/non-english Del: in docs -- https://master.php.net/note/delete/98997/in+docs Del: other reasons-- https://master.php.net/note/delete/98997 Reject -- https://master.php.net/note/reject/98997 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171008) next »