python调用sqlplus来操作和解析oracle数据库的方法

先来看一个简单的利用python调用sqlplus来输出结果的例子:

import os
import sys
from subprocess import popen, pipe
sql = “””
set linesize 400
col owner for a10
col object_name for a30
select owner, object_name
from dba_objects
where rownum

Posted in 未分类

发表评论