Creating Tables In Sql With Python

[Solved] Creating Tables In Sql With Python | Python - Code Explorer | yomemimo.com
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

Answers related to creating tables in sql with python

Code Explorer Popular Question For Python