Answers for "can you create tables in python"

SQL
1

how to make table using python

from prettytable import PrettyTable
A = PrettyTable()
A.add_column("Pokimon",["wartortle"])
A.add_column("Type",["Water attack"])
print(A)
Posted by: Guest on September-04-2021
11

creating tables in sql with python

import sqlite3
conn = sqlite3.connect('dbname')
c = conn.cursor()
c.execute('''CREATE TABLE songs (
    song text,
    artist text,
    year integer)''')
Posted by: Guest on March-11-2021

Code answers related to "can you create tables in python"

Code answers related to "SQL"

Browse Popular Code Answers by Language