I have a insert sql:
cur.execute(f"""INSERT INTO patients_patient (patient_id, patient_name) VALUES
(1,'Jane'),(2,'John')""")
I tired use parameters in query and pass the values separately:
cur.execute(f"""INSERT INTO patients_patient (patient_id, patient_name) VALUES
(%s,%s),(%s,%s)""",(1,'Jane'),(2,'John'))
Error:
cur.execute(f"""INSERT INTO patients_patient (patient_id, patient_name) VALUES
TypeError: function takes at most 2 arguments (3 given)
any friend can help?