Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6149731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:30:10+00:00 2026-05-23T19:30:10+00:00

I am a java programmer and I want to use MongoDB in my project.

  • 0

I am a java programmer and I want to use MongoDB in my project. I know that MongoDB is a document database but is there any way to store more fields for a record in this db ?

For example I have a table with 4 attributes (i.e. columns) name address age and dob so can I use or convert this structure to fit into MongoDB ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:30:11+00:00Added an answer on May 23, 2026 at 7:30 pm

    Of course.

    MongoDB is a document-based database management system. If you are familiar with the JSON format, Mongo stores data in a very similar manner. For example, a sample document in a Mongo database may look like this:

    Person {
        Name:
        {
           First : "John"
           Last : "Smith"
        }
        Address :
        {
           City : "Chicago"
           State : "Illinois"
           Street : "30 S. Michigan Avenue"
        }
    } 
    

    As you can see Mongo supports nested fields, so a particular field can contain one or more attributes. It is not key/value per se, as it is possible to nest document ad infinitum. Beware, however, that not all documents in a collection have to have the same structure. This is Mongo’s biggest strength, but it can turn around and bite you if you’re not careful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm an old (but not too old) Java programmer, that decided to learn C++.
i am a Java beginner and i want to use log4j , but i
I am a C# programmer. I want to learn Java to implement my windows
I'm a longtime Java programmer working on a PHP project, and I'm trying to
I am a Java programmer and need to work on a Flex/ActionScript project right
I am a Java programmer who learns Haskell. I've written a small program that
I am a Java programmer and I know a few things about threading int
I am a java programmer, I found that Java is very good at doing
I am a Java programmer and was working on a project using Hibernate and
HI I am a new java programmer (very new). What I want to do/test

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.