我编写的bat文件内容是:sqlplus system/manager@orcl @C:\insert_into_temp.sql;
insert_into_temp.sql的内容是
INSERT INTO T_temp
SELECT *
FROM T_temp2;
COMMIT;SQL语句,没有问题
但运行bat无法执行,问题说是 ‘sqlplus ’无法识别,为什么呢请大家帮忙,谢谢
insert_into_temp.sql的内容是
INSERT INTO T_temp
SELECT *
FROM T_temp2;
COMMIT;SQL语句,没有问题
但运行bat无法执行,问题说是 ‘sqlplus ’无法识别,为什么呢请大家帮忙,谢谢
上面的分两行写
sqlplus system/manager@orcl
@C:\insert_into_temp.sql;
不行啊,还是‘sqlplus ’无法识别
sqlplus system/manager@orcl @C:\insert_into_temp.sql
我试了没问题
你先把命令行打开输入sqlplus -help
看看能不能出帮助
我怀疑你sqlplus有问题
sqlplus system/manager@orcl @C:\insert_into_temp.sql;
改为
sqlplus system/manager@orcl @C:\insert_into_temp.sql
终于找到问题了,原来sqlplus果然有问题,程序在别的机器上测了没有问题,谢谢了,给分了!