[SQLite] 스크립트 불러와서 쿼리실행

2020. 5. 31. 21:10DataBase/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 deletions. +22 −0 SQLite/scriptMemoryExam.py @@ -0,0 +1,22 @@ import sqlite3 try: conn = sqlite3.conne

github.com

 

반응형