#coding: utf-8
from cx_Oracle.CURSOR import *
import cx_Oracle

conn= cx_Oracle.connect('XX', 'XX', '127.0.0.1:1521/orcl') #type:cx_Oracle.Connection
c=conn.cursor() #type:Cursor


# x=c.execute('select sysdate from dual')

x=c.execute('select * from sys_org')
result = x.fetchone()
print(result)
c.close()
conn.close()

红色部分解决在Pycharm中无法显示代码提示的问题

相关文章:

  • 2021-09-30
  • 2021-12-24
  • 2021-08-28
  • 2021-08-13
  • 2021-04-19
  • 2021-05-21
  • 2021-07-29
  • 2022-12-23
猜你喜欢
  • 2021-07-04
  • 2021-12-09
  • 2021-12-08
  • 2022-12-23
  • 2021-08-25
  • 2022-01-08
相关资源
相似解决方案