I am working on a learning how to execute SQL in python (I know SQL, not Python).
I have an external sql file. It creates and inserts data into three tables \'Zooke
A very simple way to read an external script into an sqlite database in python is using executescript():
executescript()
import sqlite3 conn = sqlite3.connect('csc455_HW3.db') with open('ZooDatabase.sql', 'r') as sql_file: conn.executescript(sql_file.read()) conn.close()