Mongo db data insert

technical talkiess
0

 // connect with database in the mongo db


use vishalkart

// single item ko insert karne ke liye use karte hai
Like this you can inserrt singl entry in mongo db

db.items.insertOne({name:"vishal phone",price:22,rating:4.5,qty:233,sold:98})

Like this you can install the multiple entry in the db
// multiple column ko add karna hai... L
db.items.insertMany([{name:"vishal phone",price:22,rating:4.5,qty:233,sold:98},
{name:"T phone",price:122,rating:3.5,qty:443,sold:100}])

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)