脚本如下
例子:
create table AA
(
id number,
name varchar(32),
address varchar(256)
)
tablespace DB_BB
pctfree 10
pctused 40
initrans 1
maxtrans 255
storage
(
initial 40K
next 40K
minextents 1
maxextents unlimited
pctincrease 0
); -- 错误地方alter table AA
add constraint PK_AA_ID primary key (ID)
using index
tablespace USERS
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 128K
next 128K
minextents 1
maxextents 4096
pctincrease 0
);如果直捷在pl/sql里面执行就回在第一个";"(标注了 "-- 错误地方
")哪里出错 ORA-00911:无效字符,导致我只能一段一段的复制到里面执行,好麻烦啊.有没有好办法帮我一下完成...或者其它的建议都可以..不过pl/sql确实挺好用的..谢谢大家了
例子:
create table AA
(
id number,
name varchar(32),
address varchar(256)
)
tablespace DB_BB
pctfree 10
pctused 40
initrans 1
maxtrans 255
storage
(
initial 40K
next 40K
minextents 1
maxextents unlimited
pctincrease 0
); -- 错误地方alter table AA
add constraint PK_AA_ID primary key (ID)
using index
tablespace USERS
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 128K
next 128K
minextents 1
maxextents 4096
pctincrease 0
);如果直捷在pl/sql里面执行就回在第一个";"(标注了 "-- 错误地方
")哪里出错 ORA-00911:无效字符,导致我只能一段一段的复制到里面执行,好麻烦啊.有没有好办法帮我一下完成...或者其它的建议都可以..不过pl/sql确实挺好用的..谢谢大家了
Connected as chanetSQL>
SQL> create table AA
2 (
3 id number,
4 name varchar(32),
5 address varchar(256)
6 )
7 tablespace users
8 pctfree 10
9 pctused 40
10 initrans 1
11 maxtrans 255
12 storage
13 (
14 initial 40K
15 next 40K
16 minextents 1
17 maxextents unlimited
18 pctincrease 0
19 );Table createdSQL> alter table AA
2 add constraint PK_AA_ID primary key (ID)
3 using index
4 tablespace USERS
5 pctfree 10
6 initrans 2
7 maxtrans 255
8 storage
9 (
10 initial 128K
11 next 128K
12 minextents 1
13 maxextents 4096
14 pctincrease 0
15 );Table alteredSQL>