importos
fromsubprocessimportPopen,PIPE
sqlplus=Popen(["sqlplus","-S","andy/root"],stdout=PIPE,stdin=PIPE)
sqlplus.stdin.write("selectsysdatefromdual;"+os.linesep)
sqlplus.stdin.write("insertintot_pythonvalues(1,‘chenlong‘);"+os.linesep)
sqlplus.stdin.wr..
分类:
数据库 时间:
2014-08-14 04:00:48
阅读次数:
345