Oracle Notes

From PeformIQ Upgrade
Revision as of 15:14, 21 October 2009 by PeterHarding (talk | contribs) (Created page with '=Notes= ==cx_Oracle== <pre> >>> import cx_Oracle >>> conn = cx_Oracle.connect('xxxx','xxxx','XX') >>> curs = conn.cursor() >>> curs.arraysize=50 >>> sql = 'SELECT * from DBUSE...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Notes

cx_Oracle

>>> import cx_Oracle
>>> conn = cx_Oracle.connect('xxxx','xxxx','XX')
>>> curs = conn.cursor()
>>> curs.arraysize=50

>>> sql = 'SELECT * from DBUSER.BUG'

>>> curs.execute(sql)
<__builtin__.OracleCursor on <cx_Oracle.Connection to xxx@XX>>

>>> print curs.description
...

>>> print curs.fetchone()
...

>>> for x in curs:
	print x
...

>>> curs.execute('describe XXX.BUG')

cx_Oracle Working Notes

Python DBI