Question : creating tables in sql with python
Answered by : tejas-naik
import sqlite3
conn = sqlite3.connect('dbname')
c = conn.cursor()
c.execute('''CREATE TABLE songs ( song text, artist text, year integer)''')
Source : | Last Update : Thu, 18 Mar 21