先来看一个简单的利用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
A programmer’s note boke for work and life
先来看一个简单的利用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