0 votes
1 view
in Python by (120 points)

Hi..I want to copy the data from table 1 to the table 2. So, I have created a button to start insert the data. The problem is I got this error MySQLdb._exceptions.ProgrammingError: not enough arguments for format string.

This is my code:

cur.execute("INSERT INTO table2 (id,q) WHERE id = %s SELECT id,q FROM table1 WHERE id = %s", [id])

Hope u can help me

Please log in or register to answer this question.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jul 11, 2019 in Python by ParasSharma1 (14.6k points)
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...