In my Setting up a MongoDB development environment blog post I cover in detail the background behind MongoDB and how to set things up. MongoDB is an open-source NoSQL database and its history goes back as far as 2007 when it was first developed by a company called 10gen. ![]() My aim in this article is to clear up the mystery and show you how to get started quickly with querying MongoDB databases. Working with MongoDB can sometimes seem like wizardry to developers coming from a relational background. This is particularly true in regards to database queries since MongoDB features its own unique query API that is completely different from using a traditional query language like SQL. Let's take a look at how this works in a MongoDB shell session.įirst, we can switch to a new temporary database and create three documents that each have a date field.As a document-oriented database, MongoDB is very different from relational databases such as SQL Server or PostgreSQL. In general, it's almost always best to store date information using the Date type and then format it for output as needed. It is important to keep in mind this distinction between these two types as it affects what operations are available, the way the information is stored, and how much flexibility it will give you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |