1、连接oracle
2、获取表的数据字段--单独写一个函数
3、插入sql-利用for循环执行
#!/usr/bin/python
# -*- coding: utf-8 -*-
import cx_Oracle
import time
#db_info = {'host':'xxx', 'port':xxx, 'user':'xx', 'passwd':'xxx', 'db':'xxx', 'charset':'xxx/xxx@ip:port/ORA94
quer_seq = 'seq_test_1.nextval'
insert_rating_condition_desc = '''insert into acct_balance_290_20220328 (ACCT_BALANCE_ID, ACCT_ID, BALANCE, BALANCE_TYPE_ID, CREATE_DATE, CYCLE_LOWER, CYCLE_TYPE, CYCLE_UPPER, EFF_DATE, EXP_DATE, REMARK, RESERVE_BALANCE, SHARE_RULE_FLAG, STATUS_CD, STATUS_DATE, PRE_RATE) values (seq_test_1.nextval, 84639404, 0, {SWITCH_ID}, to_date('15-04-2009 16:21:08', 'dd-mm-yyyy hh24:mi:ss'), 0, 1, 999999999999, to_date('15-04-2009 16:21:08', 'dd-mm-yyyy hh24:mi:ss'), to_date('15-04-2050', 'dd-mm-yyyy'), '后付费