insertSql = "DECLARE email_text clob := ‘%s‘; begin insert into emails values (‘%r‘,‘%s‘,email_text,‘重点股票跟踪(%s)‘,‘0‘,‘‘); end;" % (
email_text,id, contactEamilAddress, dateInput)
2.用python的结果集,读取到clob字段的时候,转化为str类型处理,如下:
cur_bbc.execute("select t.*, t.rowid from emails t where t.email_status = ‘0‘")
res = cur_bbc.fetchall()
for record in res:
id = record[0]
to_email = record[1]
to_email_list = to_email.split(",")
email_text = record[2].read() --clob类型
oracle 插入 clob字段的问题 及 python读取clob字段
标签:.exe from pytho 处理 input 股票 hal oracl str