import os
# sql脚本结尾加';'!!!
os.system('sqlplus.exe scott/s123@127.0.0.1:1521/ORCL @D:/PycharmProjects/test.sql')
os.system('python.exe D:\PycharmProjects\test.py')
2023-02-04 08:13:42
import os
# sql脚本结尾加';'!!!
os.system('sqlplus.exe scott/s123@127.0.0.1:1521/ORCL @D:/PycharmProjects/test.sql')
os.system('python.exe D:\PycharmProjects\test.py')