2020
09-24
09-24
python 插入日期数据到Oracle实例
啥也不说了,还是看代码吧![root@yyjkDATABASE]#catDBI.py#-*-coding:utf-8-*-importcx_OracleimporttimeimportdatetimeclassDBI(object):defLoadDB(self,a,b):printselfconn=cx_Oracle.connect('tlcbuser/tlcbuser@1.1.1.1/tlyy')cursor=conn.cursor()#coding:UTF-8#获取当前时间time_now=int(time.time())#转换成localtime#time_local=time.localtime(time_now)#printtime_loca...
继续阅读 >