Advertisement
Guest User

Untitled

a guest
May 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Creating the columns
  2.  
  3. Played = fList[0][0]
  4. Team = fList[0][1]
  5. GP = fList[0][2]
  6. W = fList[0][3]
  7. D = fList[0][4]
  8. L = fList[0][5]
  9. F = fList[0][6]
  10. A = fList[0][7]
  11. GD = fList[0][8]
  12. Pts = fList[0][9]
  13.  
  14. queryCreateTable = """CREATE TABLE FOOTBALL(
  15. {} int(2) not null,
  16. {} varchar(255) not null,
  17. {} int(2) not null,
  18. {} int(2) not null,
  19. {} int(2) not null,
  20. {} int(2) not null,
  21. {} int(2) not null,
  22. {} int(2) not null,
  23. {} int(3) not null,
  24. {} int(3) not null
  25. )""".format(Played, Team, GP, W, D, L, F, A, GD, Pts)
  26.  
  27. cursor.execute(queryCreateTable)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement