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