'Computer Science/Tech Stack' 카테고리의 글 목록 (2 Page) — Archive

Computer Science/Tech Stack

Computer Science/Tech Stack

[MongoDB] Update Operators | 수정 연산자

Update Operators 수정 연산자 - Update Operator는 DB에 저장된 데이터를 수정하거나 새로운 데이터를 추가할 수 있게 하는 연산자이다. - MongoDB 5.0 버전부터, 수정 연산자는 Document의 Field 이름이 string Type인 경우 Lexicographic Order(사전순)로 처리하고, numeric Type인 경우 Numeric Order(수치순)로 처리한다. Example. MongoDB 5.0 vs Earlier { $set: { "a.2": , "a.10": , } } MongoDB 5.0 : "a.2" 필드를 먼저 처리한다. (Numeric Order상, 2가 10보다 먼저이기 때문이다.) MongoDB Earlier : "a.10" 필드를 먼저 처리..

Computer Science/Tech Stack

[MongoDB] Query and Projection Operators | 쿼리 연산자 및 프로젝션 연산자

Query and Projection Operators 쿼리 연산자 및 프로젝션 연산자 - Query Operator는 DB 내에서 데이터를 검색하는 연산자이고, Projection Operator는 데이터의 출력 방식을 조작하는 연산자이다. Query Selectors (쿼리 셀렉터, 쿼리 연산자) Comparison (비교 연산자) For comparison of different BSON type values, see the specified BSON comparison order. Name Syntax Description $eq { : { $eq: } } 동등 연산 (=) $ne { : { $ne: } } 부등 연산 (≠) $gt { : { $gt: } } 초과 연산 (>) $gte { : { ..

Computer Science/Tech Stack

[MongoDB] Operators | 연산자

Operators 연산자 - MongoDB에서 지원하는 연산자에 대해 알아본다. - MongoDB에시 지원하는 연산자들의 큰 범주는 아래와 같다. Query and Projection Operators Update Operators Aggregation Pipeline Stages Aggregation Pipeline Operators Query Modifiers Query and Projection Operators (URL) [Database/MongoDB] Query and Projection Operators | 쿼리 연산자 및 프로젝션 연산자 Query and Projection Operators 쿼리 연산자 및 프로젝션 연산자 - Query Operator는 DB 내에서 데이터를 검색하는 연산..

Computer Science/Tech Stack

[MongoDB] BSON Types | BSON 데이터형

​BSON Types BSON 데이터형 - MongoDB의 Document를 저장하기 위한 Binary Serialization Format이다. - MongoDB의 Remote Procedure Call에 사용된다. MongoDB BSON Types Type Name Type Number Alias Notes Double 1 "double" String 2 "string" Object 3 "object" Array 4 "array" Binary data 5 "binData" Undefined 6 "undefined" ※ DEPRECATED ObjectId 7 "objectId" Boolean 8 "bool" Date 9 "date" Null 10 "null" Regular Expression 11 "r..

Computer Science/Tech Stack

[MongoDB] MongoDB Shell (mongosh) | 몽고DB 쉘

MongoDB Shell (\(\texttt{mongosh}\)) 몽고DB 쉘 Shell Instructions (쉘 명령어) show databases (=show dbs) - 현재 MongoDB에 생성된 데이터베이스들의 이름과 크기를 출력한다. show collections - 현재 데이터베이스에 생성된 Collection들의 이름을 출력한다. use - 데이터베이스를 선택한다. db.createCollection("") - 현재 데이터베이스에 Collection을 생성한다. - {"ok" : 1} 메시지가 출력되면 Collection이 정상적으로 생성된 것이다. Reference: MongoDB (URL) Reference: MongoDB Documentation (URL)

Computer Science/Tech Stack

[MongoDB] CRUD Instructions | CRUD 명령어

CRUD Instructions CRUD 명령어 (Create - Read - Update - Delete; 생성 - 조회 - 변경 - 삭제) - 데이터에 대한 생성, 조회, 변경, 삭제에 해당되는 명령어들을 살펴본다. (이들 4개 연산은 데이터베이스에서 기초가 되는 연산으로, 관례적으로 "CRUD"라 지칭한다.) Data Create Instructions (데이터 생성 명령어) \(\texttt{insertOne}\) Instruction Prototype db..insertOne( {"":, ...} ) - 하나의 Document를 \(\texttt{}\) Colleciton에 생성(입력)한다. \(\texttt{insertMany}\) Instruction Prototype db..insertMa..

Computer Science/Tech Stack

[MongoDB] MongoDB Preview | 몽고DB 개요

MongoDB Preview 몽고DB 개요 (URL) MongoDB: The Application Data Platform Get your ideas to market faster with an application data platform built on the leading modern database. MongoDB makes working with data easy. www.mongodb.com Mongo DB Settings (몽고DB 설정) * Windows \(\texttt{cmd}\) Commands C:\>net start MongoDB MongoDB Server 서비스를 시작합니다.. MongoDB Server 서비스가 잘 시작되었습니다. C:\>net stop MongoDB Mongo..

Computer Science/Tech Stack

[PostgreSQL] PostgreSQL Syntax | PostgreSQL 문법

PostgreSQL Syntax PostgreSQL 문법 PSQL Command - PSQL의 CUI 환경에서 사용하는 명령어이다. \? \? - PSQL Command 관련 도움말을 출력한다. \h \h - SQL Commnad 관련 도움말을 출력한다. \c [DB_name] [Connection_User] \c [DB_Name] [Connection_User] - Query를 실행할 DB Instance에 입장한다. \list or \l \list -- 또는 \l - 전체 DB Instance 리스트를 출력한다. \d[t | s | f | v | u] [+] \dt -- 현재 접속중인 DB Instance의 Table 목록을 출력한다. \ds -- Sequence 목록을 출력한다. \df -- Fun..

lww7438
'Computer Science/Tech Stack' 카테고리의 글 목록 (2 Page)