Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Jenkins Pipeline
- docker network
- error
- 리액트
- java
- Docker
- nginx
- IntelliJ
- 리눅스
- spring
- vue.js
- REACT
- MySQL
- jenkins github 연동
- subnetmask
- JavaScript
- gradle
- MongoDB
- Spring Boot
- CI/CD
- jenkins jdk
- jenkins maven
- jenkins install
- grafana
- Linux
- jenkins github
- jpa
- jenkins 설치
- grpc
- Jenkins
Archives
- Today
- Total
728x90
목록MongoDB command line (1)
뭐든 즐기면서 ;)
MongoDB 기본 명령어
현재 db명 > db 전체 db를 보여줌(단, document가 하나라도 있어야 보여짐) > show dbs collection 확인 > show collections document 확인 # 전체 검색 > db.collection명.find() # 조건 검색 > db.collection명.find( {id:"조건"} ) # 조건 + 원하는 필드 # 예시) db.collection명.find( {fiedId: "조건"}, {fieldId: boolean} ) > db.collection명.find( {id:"조건"}, {name: true} ) document insert # 한 개 > db.collection.insertOne({fieldId:"필드값", fieldId:"필드값"}) # 여러 개 > d..
DB(데이타베이스)/MongoDB
2023. 2. 21. 18:31
728x90