1

How can i send the output of a python script into a specific field in my DB.

i know how to insert records in table,

sql = """INSERT INTO EMPLOYEE(FIRST_NAME,
LAST_NAME, AGE, SEX, INCOME)
VALUES ('Mac', 'Mohan', 20, 'M', 2000)"""

But Suppose My Code is

a=10
b=10
c=a+b

How can i insert the value of c which is 20, into specific field.

Jens
  • 67,715
  • 15
  • 98
  • 113
abcd
  • 21
  • 3

0 Answers0