例如
afiedt.buf中输入:
create table p5
(i int);
create table p6
(i int);结果
SQL> /
(i int);
*
第 2 行出现错误:
ORA-00911: 无效字符afiedt.buf中输入:这次不带分号
create table p5
(i int)
create table p6
(i int)
/
SQL> /
create table p6
*
第 3 行出现错误:
ORA-00922: 选项缺失或无效
高手赐教!
afiedt.buf中输入:
create table p5
(i int);
create table p6
(i int);结果
SQL> /
(i int);
*
第 2 行出现错误:
ORA-00911: 无效字符afiedt.buf中输入:这次不带分号
create table p5
(i int)
create table p6
(i int)
/
SQL> /
create table p6
*
第 3 行出现错误:
ORA-00922: 选项缺失或无效
高手赐教!
如果硬要的话可以这样
begin
execute immediate 'create table p5(i int)';
execute immediate 'create table p6(i int)';
end;
没你那种写法SQL> edi
已写入 file afiedt.buf 1 begin
2 execute immediate 'create table p5(i int)';
3 execute immediate 'create table p6(i int)';
4* end;
SQL> /PL/SQL 过程已成功完成。