python cx_oracle 绑定变量

insert into tlcb_collect_f5 values(:stime,:virtual_servers,:default_pool_name,:ipaddr,:port,:AVAILABILITY_STATUS,:ENABLED_STATUS,:POOL_MEMBER_STATUS);


# -*- coding: utf-8 -*- 
import sys
import pycontrol.pycontrol as pc
import time
import csv
import ssl
import cx_Oracle 
import time
import datetime
conn = cx_Oracle.connect('tlcbuser/xx@10.5.100.232/tlyy')  
cursor = conn.cursor()
#coding:UTF-8
#获取当前时间
time_now = int(time.time())
#转换成localtime
#time_local = time.localtime(time_now)
#print time_local
#dt = time.strftime("%Y-%m-%d %H:%M:%S",time_local)
dt=datetime.datetime.now()
b = pc.BIGIP(
hostname = '2x0.2x.x',
username = 'xx',
password = '12345678',
fromurl = True,
    wsdls=['LocalLB.VirtualServer'])
pool01 = b.LocalLB.VirtualServer


c = pc.BIGIP(
hostname = '2.2.20.99',
username = 'x'x,
password = 'xx',
from
已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付 29.90元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值