Hacker News new | ask | show | jobs
by pjungwir 5009 days ago
Can you elaborate please? With a Postgres/MySQL/Oracle installation I can say `CREATE DATABASE` and get a new namespace. I couldn't find anything like that with Mongo. Am I just missing something?
1 comments

"use foobar" creates a new database called foobar.
Ah, somewhere along the line I got the impression that in Mongo a "database" and a "collection" were the same thing, but that's not true. Glad to know this was just my mistake!
Nope. Collections are analogous to tables, and documents to rows.