Created
May 9, 2019 12:03
-
-
Save StephenFordham/5aca6da6c94c736c98b1405cb3bbf09e to your computer and use it in GitHub Desktop.
creating_columns
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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