I want to add a primary key in my table using sqlite in python. But I get a syntax error: My code is this:
c.execute('''ALTER TABLE goal
ADD PRIMARY KEY matchid, gtime''')
I want to add a primary key in my table using sqlite in python. But I get a syntax error: My code is this:
c.execute('''ALTER TABLE goal
ADD PRIMARY KEY matchid, gtime''')