通过Python将数据插入oracle数据库的问题

时间:2019-05-31 04:32:23

标签: python

我遇到了通过Python将数据插入Oracle数据库的问题

MATCH (a:PERSON {name: 'WD'})-[r*..3]-(b:PERSON{name: 'EK'}) RETURN r, a, b

应将其打印出来cur = con.cursor() idin = str(input("Insert ID: ")) las = str(input("Insert last name: ")) fir = str(input("Insert first name: ")) dat = str(input("Insert date (ex: dd/JUN/yyyy): ")) sex = str(input("Insert gender(M/F): ")) phone = str(input("Insert phone number: ")) addr = str(input("Insert address: ")) sql = "INSERT INTO KHANG.PATIENT VALUES({idina}, {lasa}, {fira}, {datas}, {sexa}, {phonea}, {addra})" cur.execute(sql.format(idina = idin, lasa = las, fira = fir, datas = dat, sexa = sex, phonea = phone, addra = addr)) print("Inserted Job Successfully!") cur.close() 但我出错了

"inserted job successfully"

0 个答案:

没有答案