
안녕하세요! 항상 나아가는 개발자 pink_salt 핑솔입니다! 코드프레소 Java 웹 개발 체험단 활동을 하고 있습니다. 이번엔 '처음 시작하는 SQL 프로그래밍'강의를 듣고 공부한 내용을 정리하여 포스팅을 진행하겠습니다. 웹서비스 개발을 진행할 때 필수적인 요소가 바로 데이터베이스 입니다. 왜냐하면 웹서비스에서 가장 중요한 것은 데이터이기 때문입니다. 쇼핑몰에서 좋아요를 누르고, 장바구니에 넣고 등등 모든 활동들이 데이터베이스에 저장되어있는 데이터라고 할 수 있습니다. 그래서 이번엔 데이터베이스와 SQL에 대해서 자세하게 알아보겠습니다! 데이터베이스란 무엇인가? 데이터는 다양한 방법으로 관리가 가능합니다.(파일, 엑셀 등) 여러 사람이 공유하여 사용할 목적으로, 통합하여 관리되는 데이터의 집합을 말합..

💡 MongoDB 공식문서를 참고하였다. 참고 : https://docs.mongodb.com/manual/tutorial/project-fields-from-query-results/ Project Fields to Return from Query — MongoDB Manual Docs Home → MongoDB Manual➤ Use the Select your language drop-down menu in the upper-right to set the language of the following examples.By default, queries in MongoDB return all fields in matching documents. To limit the amount of data that..

💡 MongoDB 공식 문서를 참고해서 작성하였다. 참고 : https://docs.mongodb.com/manual/tutorial/query-array-of-documents/ Query an Array of Embedded Documents — MongoDB Manual Docs Home → MongoDB Manual➤ Use the Select your language drop-down menu in the upper-right to set the language of the following examples.The following example selects all documents where an element in the instock array matches the specified do..

Database, Collection, Document를 생성하는 명령어와 제거하는 명령어 Database, Collection, Document 관계도 Database 생성 : use use DATABASE_NAME 명령어를 통해 Database를 생성할 수 있다. 만약 데이터베이스가 이미 존재하면 현존하는 데이터베이스를 사용한다. 생성 후에 생성된 데이터베이스를 사용하게 된다. ex) mongodb_tutorial이라는 데이터베이스를 생성한다. > use mongodb_tutorial switched to db mongodb_tutorial ex) 현재 사용 중인 데이터베이스를 확인하려면 db명령어를 입력한다. > db mongodb_tutorial ex) 만든 데이터베이스 리스트들을 확인하려면 sh..