SQL - SQL Injection
ยท
๐งฉ SQL
โ
SQL Injection์ด๋?์ฌ์ฉ์ ์
๋ ฅ์ ์ด์ฉํด “์๋ํ์ง ์์ SQL ์ฟผ๋ฆฌ”๋ฅผ ์คํ์ํค๋ ๊ณต๊ฒฉ์๋ฐฉ ๋ฐฉ๋ฒ: String Interpolation์ ์ฌ์ฉํ์ง ์๋๋ค.import sqlite3connection = sqlite3.connect("users.db")cursor = connection.cursor()def init_table(): cursor.execute( """ CREATE TABLE users ( user_id integer primary key autoincrement, username text not null, password text not null ); """ ) cursor.execute( ..