๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Python/Basic

Sqlite

๋ฐ˜์‘ํ˜•

http://pythonstudy.xyz/python/article/204-SQLite-%EC%82%AC%EC%9A%A9

 

์˜ˆ์ œ๋กœ ๋ฐฐ์šฐ๋Š” ํŒŒ์ด์ฌ ํ”„๋กœ๊ทธ๋ž˜๋ฐ - SQLite ์‚ฌ์šฉ

1. sqlite3 ์†Œ๊ฐœ SQLite๋Š” ๋ณ„๋„์˜ DB ์„œ๋ฒ„๊ฐ€ ํ•„์š”์—†์ด DB ํŒŒ์ผ์— ๊ธฐ์ดˆํ•˜์—ฌ ๋ฐ์ดํƒ€๋ฒ ์ด์Šค ์ฒ˜๋ฆฌ๋ฅผ ๊ตฌํ˜„ํ•œ Embedded SQL DB ์—”์ง„์ด๋‹ค. SQLite๋Š” ๋ณ„๋„์˜ ๋ณต์žกํ•œ ์„œ๋ฒ„ ์„ค์น˜๊ฐ€ ํ•„์š” ์—†๊ณ , ์‰ฝ๊ณ  ํŽธ๋ฆฌํ•˜๊ฒŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค๋Š” ์ ์—์„œ ๋„๋ฆฌ ์‚ฌ์šฉ๋˜๊ณ  ์žˆ๋‹ค. ์˜ค๋Š˜๋‚  ๋Œ€๋ถ€๋ถ„์˜ Mac OS X ๋‚˜ ๋ฆฌ๋ˆ…์Šค์—์„œ๋Š” SQLite์„ ๊ธฐ๋ณธ์ ์œผ๋กœ ๋‚ด์žฅํ•˜๊ณ  ์žˆ์ง€๋งŒ, ๋งŒ์•ฝ ์‹œ์Šคํ…œ์— ๋‚ด์žฅ๋˜์–ด ์žˆ์ง€ ์•Š๋Š” ๊ฒฝ์šฐ๋Š” http://www.sqlite.org ์—์„œ ๋‹ค์šด๋ฐ›์•„ ์„ค

pythonstudy.xyz

https://docs.python.org/3/library/sqlite3.html

 

sqlite3 — DB-API 2.0 interface for SQLite databases — Python 3.8.2rc2 documentation

Using shortcut methods Using the nonstandard execute(), executemany() and executescript() methods of the Connection object, your code can be written more concisely because you don’t have to create the (often superfluous) Cursor objects explicitly. Instead,

docs.python.org

https://www.w3resource.com/sqlite/sqlite-data-types.php

 

SQLite Data Types - w3resource

SQLite Data Types : Maximum SQL database engines uses static, rigid typing. In static typing system, the datatype of a value is determined by its container ( e.g. integer type always accept integer values) the particular column in which the value is stored

www.w3resource.com

 

๋ฐ˜์‘ํ˜•