DataBase(35)
-
[MongoDB] Create Operations
I. createCollection 함수를 이용한 컬렉션 생성 "people" 컬렉션 생성 II. insertOne 함수를 이용하여 데이터 삽입과 동시에 컬렉션 생성 "usr_id","age","status" 3개의 컬럼을 갖는 "people" 컬렉션 생성
2020.06.01 -
[MongDB] 기본 명령어
show dbs; 전체 데이터베이스 조회 use db명; 1) db명에 해당하는 데이터베이스에 접속(연결) 2) db명에 해당하는 데이터베이스가 없으면 생성( 내용(컬렉션 등..)이 없을경우 접속을 끊으면 없어진다. ) db; 현재 접속(연결)되어있는 데이터베이스명을 보여준다. show collections; 해당 데이터베이스의 전체 컬렉션 조회
2020.05.31 -
[SQLite] 스크립트 불러와서 쿼리실행
I. 스크립트 내용 확인 II. 스크립트 불러와서 데이터 조회 스크립트 파일 불러오기 스크립트 내용 불러오기 스크립트 내용 실행 스크립트의 테이블 데이터 조회 조회 결과에서 상위부터 2개 레코드 출력 결과 SOURCE CODE https://github.com/hyunmin94/study_exam/commit/acc3e302d6046a603351c6f97598750fc241995e [SQLite] 스크립트 내용을 트랜잭션에 적용 · hyunmin94/study_exam@acc3e30 Permalink Browse files [SQLite] 스크립트 내용을 트랜잭션에 적용 Loading branch information Showing 1 changed file with 22 additions and 0 d..
2020.05.31 -
[SQLite] 트랜잭션 작업 스크립트에 저장
I. 트랜잭션에서의 작업 스크립트 처리 테이블 생성 : phonebook 테이블에 데이터 삽입 트랜잭션에서의 작업내용 scriptFile.sql 파일에 저장(iterdump 함수 사용) II. 스크립트 확인 트랜잭션에서의 작업 스크립트 확인 SOURCE CODE https://github.com/hyunmin94/study_exam/blob/master/SQLite/memoryScripteExam.py hyunmin94/study_exam Contribute to hyunmin94/study_exam development by creating an account on GitHub. github.com
2020.05.31 -
[SQLite] Python 환경에서 update 처리
I. 테이블 데이터 확인 II. 테이블에 데이터 Update 처리 DB : sqlite TABLE : tblmember id 가 3이상인 레코드의 id를 id + 10 로 수정 III. 테이블 데이터 확인 SOURCE CODE https://github.com/hyunmin94/study_exam/blob/master/SQLite/updateExam.py hyunmin94/study_exam Contribute to hyunmin94/study_exam development by creating an account on GitHub. github.com
2020.05.31 -
[SQLite] Python 환경에서 insert 처리
I. 테이블 데이터 확인 II. 테이블에 데이터 Insert 처리 DB : sqlite TABLE : tblmember 단일 레코드로 삽입시 (execute 함수) 다중 레코드 삽입시 (executemany 함수) 결과는 동일 III. 테이블 데이터 확인 SOURCE CODE hyunmin94/study_exam Contribute to hyunmin94/study_exam development by creating an account on GitHub. github.com
2020.05.31