【提问】PL/SQL里 有10条INSERT语句,想要一次执行,该怎么写? 谢谢。 在PL/SQL里面直接写就行了。begin insert into .... ; insert into .... ; ....end;/ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 PL/SQL里面直接写 ,就可以。最后 commit;ok begin insert into .... ; insert into .... ; .... commit work;end; 明白了吗?用“;”结束在SQL*Plus中执行SQL语句,可用“/”比如说:insert Into Your(ss,ii,ss,tt,ee,rr) values(11,22,33,44,55)/ 先写一个脚本文件然后再在pl/sql中利用@命令运行例如demo.sqlbegin select count(*) from emp; update emp set sal=1000 where sal<1000; delete from dept where deptno<>10; commit;end///运行脚本文件@e:\demo.sql sql优化问题 Oracle 哪里能下到绿色版的oracle? 存储过程设计问题,执行后似乎不能立刻生效! 存储过程的日志怎么来的(应该是简单的问题) oracle数据库连不上 为什么Listener服务不能启动? 始终不明白临时表空间TEMP是用来做什么的,有什么用处 REDO01.LOG REDO02.LOG的内容是一样的吧? 两台Oracle10g client sqlplus如何连接server 端呢? Oracle数据库管理员技术指南 p4 机器 oracle 9i 安装不行
insert into .... ;
insert into .... ;
.... commit work;end;
用“;”结束
在SQL*Plus中执行SQL语句,可用“/”
比如说:
insert Into Your(ss,ii,ss,tt,ee,rr)
values(11,22,33,44,55)
/
然后再在pl/sql中利用@命令运行例如
demo.sql
begin
select count(*) from emp;
update emp
set sal=1000
where sal<1000;
delete from dept where deptno<>10; commit;
end
///运行脚本文件
@e:\demo.sql