MongoDb commands to perform crud operations on document (create,read,update,delete) | MongoDb Basics

preview_player
Показать описание
If you like this video then please share it with your friends..
If you have any doubt then you can comment below we will surely help you..
------------------------------------------------------------
Commands used in this video
-------------------------------------------------------------
//Mongo Data Dictionary Path-
\data\db

//Mongo Start

//Connect Mongo

//Basic Difference With MySQL

RDBMS MongoDB
Database Database
Table Collection
Tuple/Row Document
column Field
Table Join Embedded Documents
Primary Key Primary Key (Default key _id provided by mongodb itself)

//Sample Document

{
_id: ObjectId(7df78ad8902c)
title: 'MongoDB demo'
description: 'MongoDB is no sql database',
by: 'sm tech',
likes: 50
}

_id is a 12 bytes hexadecimal number which assures the uniqueness of every document. You can provide _id while inserting the document.

//Create Database

use smtech

//To check your currently selected database

db

//check your databases list

show dbs

//Drop Database

//Query

//Create Collection

//Drop Collection

//Insert

//Multiple Insert

//find() and findOne()

//Update

//Delete

----------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

please tell me how to turnoff fan 😂😂😂😂

mrbhaskarn