분류 전체보기
-
[MongoDB] CRUD Operations공부/MongoDB 2022. 1. 9. 19:24
Create insertOne(data, options) 👉 하나의 document를 삽입함 insertMany(data, options) 👉 여러 document를 삽입함 Read find(filter, options) 👉 collection의 모든 document를 조회함 findOne(filter, options) 👉 filter를 만족하는 첫번째 document를 조회함 Update updateOne(filter, data, options) 👉 filter를 만족하는 첫번째 document를 수정함 updateMany(filter, data, options) 👉 filter를 만족하는 모든 document를 수정함 replaceOne(filter, data, options) 👉 filter를 만족..
-
[MongoDB] 데이터 삽입 및 조회공부/MongoDB 2022. 1. 2. 22:37
1. mongo.exe 실행 show dbs : 존재하는 database를 조회 use databaseName : database에 connect하는 명령어. shop이라는 database가 없더라도 data를 insert하는 순간부터 shop 이라는 database가 생성됨 db.collectionName.insertOne( ) : 현재 연결된 db의 collectionName에 1개의 document를 삽입 document 삽입 시 key값에는 " "를 생략해도 됨 db.collectionName.find( ) : collectionName의 데이터 조회 db.collectionName.find( ).pretty( ) : collectionName의 데이터를 예쁘게 조회하는 명령어. 시각화해서 보기 ..
-
MongoDB 공부 시작~!공부/MongoDB 2022. 1. 2. 02:27
[ MongoDB 구조 ] Database - Collections - Documents (JSON(BSON)형식) Documents를 JSON 형식으로 작성하면 MongoDB server가 BSON으로 변환하여 저장함 Collection은 SQL 기반의 데이터베이스와 달리 schemaless 이므로 flexibility👍 [ MongoDB 설치 ] https://www.mongodb.com/ 에서 Community Server 설치 나는 윈도우 유저여서 윈도우 버전 설치~! 설치 완료! MongoDB Server가 자동으로 실행되는 것을 확인함 이제 MongoDB client를 실행시켜보자 MongoDB가 설치된 폴더의 bin 폴더에서 mongo.exe를 실행시키면 된다. 편의성을 위해 MongoDB ..
-
w3schools - sql exercise (1)공부/PS ( SQL) 2021. 11. 30. 01:04
SELECT * FROM Customers WHERE NOT CITY = 'Berlin' SELECT * FROM Customers ORDER BY Country, City 참고) SELECT * FROM table_name ORDER BY column1, column2 DESC column1 기준 오름차순 정렬 후 column2 기준 내림차순 정렬 INSERT Customers ( CustomerName, Address, City, PostalCode, Country ) VALUES ( 'Hekkan Burger', 'Gateveien 15', 'Sandnes', '4306', 'Norway' ) ; UPDATE Customers SET City = 'Oslo'; DELETE FROM Customers..
-
[error] git add - unable to index file '.../Browse.VC.opendb'카테고리 없음 2021. 11. 26. 02:43
https://itisguide.tistory.com/24 [Visual Studio] Could not open : VC.opendb 오류 해결 방법 원인 Visual Studio 2015 프로젝트 Git 관련 작업 중에 아래와 같이 VC.opendb를 액세스 할 수 없다는 오류가 발생했다. Could not open 'C:/Solution1/Solution1.VC.VC.opendb': 다른 프로세스가 파일을 사용 중.. itisguide.tistory.com
-
[라즈베리파이] USB 마이크를 이용해서 음성데이터를 녹음하기공부/etc 2021. 11. 8. 22:25
1. 라즈베리파이에 USB 마이크 연결 2. 마이크의 card, device 정보 가져오기 arecord -l card: 1 / device: 0 3. 스피커의 card, device 정보 가져오기 aplay -l card: 0 / device: 0 4. .asoundrc 파일 생성 nano .asoundrc pcm "hw: , " (참고) https://www.alsa-project.org/wiki/Asoundrc 5. USB 마이크 녹음 테스트 arecord -D plughw:1,0 -r 16000 -t wav -d 5 testmic.wav -D : 디바이스 이름 -r : sample rate -t : 타입 (voc, wav, raw, au) -d : 녹음할 시간(초) 참고) https://linux..