joseleonweb

Untitled

May 4th, 2021
441
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MongoClient mongo = new MongoClient("localhost", 27017);
  2. DB db = mongo.getDB("lamevabbdd");
  3. DBCollection table = db.getCollection("persona");
  4. BasicDBObject searchQuery = new BasicDBObject();
  5. searchQuery.put("name", "mkyong");
  6. DBCursor cursor = table.find(searchQuery);
  7. while (cursor.hasNext()) { System.out.println(cursor.next()); }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×