python connect oracl
import cx_Oracle
conn=cx_Oracle.connect(‘bao’,‘Amituofo’,‘LAPTOP:1521/ORCL’)
cursor = conn.cursor()
cursor.execute(“insert into dishonest values(‘amituofo’)”)
print(“successfully”)
conn.commit()
cursor.close()
python connect oracl
import cx_Oracle
conn=cx_Oracle.connect(‘bao’,‘Amituofo’,‘LAPTOP:1521/ORCL’)
cursor = conn.cursor()
cursor.execute(“insert into dishonest values(‘amituofo’)”)
print(“successfully”)
conn.commit()
cursor.close()