PL/SQL developer问题

cityvagrant 2005-10-14 11:52:50
create table e_id
(
cid number not null,
maxid number not null,
constraint pk_e_id primary key (cid)
);

create index idx_id_all On e_id(cid, maxid);

上面脚本在pl/sql developer上报ora-00911 无效字符 错误,在sqlplus下执行没有错误,这是为什么?谢谢!
...全文
205 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
cityvagrant 2005-10-18
  • 打赏
  • 举报
回复
呵呵,我自己搞定了,原来command窗口下执行批命令,而在sql窗口下执行单条命令,因为它要执行commit动作
cityvagrant 2005-10-14
  • 打赏
  • 举报
回复
在pl/sql developer中两条语句单独执行是可以的
ruide205 2005-10-14
  • 打赏
  • 举报
回复
pl/sql developer 不认那个;
sasacat 2005-10-14
  • 打赏
  • 举报
回复
可能是人家看不懂你的TAB字符?....改成空格试试?
chanet 2005-10-14
  • 打赏
  • 举报
回复
运行 pl/sql developer 6.0 正常.

chanet 2005-10-14
  • 打赏
  • 举报
回复
SQL>
SQL> create table e_id
2 (
3 cid number not null,
4 maxid number not null,
5 constraint pk_e_id primary key (cid)
6 );

Table created

Executed in 0.125 seconds

SQL> create index idx_id_all On e_id(cid, maxid);

Index created

Executed in 0.032 seconds

SQL>
waterfirer 2005-10-14
  • 打赏
  • 举报
回复
to bobfang(匆匆过客):
看错了 :p
bobfang 2005-10-14
  • 打赏
  • 举报
回复
楼主是在pl/sql developer中的什么窗口中执行的???我在Command Window的Editor中粘贴进去后,点执行是可以执行的。在Dialog中直接粘贴也是可以执行的!!!

to waterfirer(水清):
你那个SQL中有了;后再来一个/表示再执行上面的SQL,就是说create table语句会被执行两次。
xsony 2005-10-14
  • 打赏
  • 举报
回复
plsql中好象不认";"
waterfirer 2005-10-14
  • 打赏
  • 举报
回复
create table e_id
(
cid number not null,
maxid number not null,
constraint pk_e_id primary key (cid)
);
/
create index idx_id_all On e_id(cid, maxid);

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧