파이썬에서 sqlite3 예제 코드 CREATE, INSERT, SELECT, DELETE, UPDATE
간단한 sqlite3 예제 코드다. CREATE conn = sqlite3.connect('student.sqlite') cursor = conn.cursor() cursor.execute("CREATE TABLE student (id INTEGER primary key autoincrement, name char(32), class char(4))") cursor.close() conn.close() INSERT conn = sqlite3.connect('student.sqlite') cursor = conn.cursor() cursor.execute("INSERT INTO student (name, class) VALUES (?, ?)", ['홍길동', '1-1']) id = cursor.lastro..