Skip to content

Instantly share code, notes, and snippets.

@StephenFordham
Created May 9, 2019 12:03
Show Gist options
  • Save StephenFordham/5aca6da6c94c736c98b1405cb3bbf09e to your computer and use it in GitHub Desktop.
Save StephenFordham/5aca6da6c94c736c98b1405cb3bbf09e to your computer and use it in GitHub Desktop.
creating_columns
Creating the columns
Played = fList[0][0]
Team = fList[0][1]
GP = fList[0][2]
W = fList[0][3]
D = fList[0][4]
L = fList[0][5]
F = fList[0][6]
A = fList[0][7]
GD = fList[0][8]
Pts = fList[0][9]
queryCreateTable = """CREATE TABLE FOOTBALL(
{} int(2) not null,
{} varchar(255) not null,
{} int(2) not null,
{} int(2) not null,
{} int(2) not null,
{} int(2) not null,
{} int(2) not null,
{} int(2) not null,
{} int(3) not null,
{} int(3) not null
)""".format(Played, Team, GP, W, D, L, F, A, GD, Pts)
cursor.execute(queryCreateTable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment