Why I have this syntax error when I add the primary key on my table?

Viewed 40

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''')
0 Answers
Related