标签:exe date hone pre from cti har style pyc
#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中无法显示代码提示的问题
标签:exe date hone pre from cti har style pyc
原文地址:http://www.cnblogs.com/ShaYeBlog/p/7747430.html