Changes

Jump to: navigation, search

Dbms workshop

9 bytes removed, 18:30, 17 June 2014
/* Creation de la base FFH */
</pre>
'''Creation de la Collection Membre''' <pre> &gt;db.membre.insert(M1) WriteResult({ &quot;nInserted&quot; : 1 }) db.membre.insert(M2) WriteResult({ &quot;nInserted&quot; : 1 })</pre>
'''Verification de l'insertion.''' <pre>&gt; db.membre.find() { &quot;''id&quot; : ObjectId(&quot;53a07eba52a032beb132c6ba&quot;), &quot;Member_pseudo&quot; : &quot;Pirboazo&quot;, &quot;Member_num&quot; : 123001, &quot;Langue&quot; : &quot;fr&quot; } { &quot;''id&quot; : ObjectId(&quot;53a07ed752a032beb132c6bb&quot;), &quot;Member_pseudo&quot; : &quot;Yv&quot;, &quot;Member_num&quot; : 3001, &quot;Langue&quot; : &quot;fr&quot; }
** Nota ** { &gtquot; show collections membre system.indexes''id&quot; : ObjectId(&quot;53a07ed752a032beb132c6bb&quot;), &quot;Member_pseudo&quot; : &quot;Yv&quot;, &quot;Member_num&quot; : 3001, &quot;Langue&quot; : &quot;fr&quot; }
** Nota ** <pre>&gt; show collections membre system.indexes</pre> On Quitte et on se reconnecte &gt; exit bye pboizot@dbi-ntbk02:/u01/projets/mongodb/doc$ /u01/projets/mongodb/bin/mongo MongoDB shell version: 2.6.2 connecting to: test  &gt; show dbs FFH 0.078GB admin (empty) local 0.078GB test (empty)
Constat la base FFH existe...
'''Drop database'''<br />
&gt; use FFH switched to db FFH &gt; db.dropDatabase(); { &quot;dropped&quot; : &quot;FFH&quot;, &quot;ok&quot; : 1 } &gt; exit bye pboizot@dbi-ntbk02:/u01/projets/mongodb/doc$ /u01/projets/mongodb/bin/mongo MongoDB shell version: 2.6.2 connecting to: test &gt; show dbs admin (empty) local 0.078GB test (empty) &gt; <blockquote>Written with [https://stackedit.io/ StackEdit].</blockquote>
154
edits