【发布时间】:2012-11-26 15:33:31
【问题描述】:
我有一个包含以下代码的 .sql 文件:
delete from stalist
where stalistid=4944
/
insert into stalist
(stalistid, staid)
(select distinct 4944, staid
from staref
Where staid in(
3797,3798,
3870,4459,
3871,3872,
3876,3877,
0
))
/
commit
/
我想使用 Python 从 SQLPlus 执行这个文件。这可能吗?我在这类工作中没有任何 python 经验,可以使用一些帮助。谢谢!
【问题讨论】: