[问题] cx_Oracle BLOB 写入 数据库

楼主: ctr1 (【积π】)   2020-12-16 14:41:59
小弟遇到一个怪问题
使用cx_Oracle连接数据库
conn = cx_Oracle.connect(os.getenv('ID'), os.getenv('PASSWORD'),
os.getenv('DBCONN_STR'))
cur = conn.cursor()
# production env
sql = ('insert into Tab ( \
FILENAME, WAFERLOT, SLOT, NAME,TXNTIME, \
WAFER, DBSCAN, PREDRESULT, \
CDT, PLANT, REMARK, STEPNAME, AOLOT, DIESIZE)'
'values (:filename, :waferlot, :slot, :name, :txntime, \
:wafer, :dbscan, :predresult, \
:cdt, :plant, :remark, :stepname, :aolot, :diesize)')
# map
楼主: ctr1 (【积π】)   2020-12-16 14:43:00
WAFER,DBSCAN这两个字段DB是blob

Links booklink

Contact Us: admin [ a t ] ucptt.com