4

別のstart.sqlファイルを使用してcr_tb.sqlファイルを開始しようとすると、エラーが発生しますunknown command beginning pid number...

私は何を間違っていますか?(ドロップボックスのリンクを掲載しました)

4

1 に答える 1

4

問題の根源はcreate table frclubs声明にあります。に空白行があります

テーブル定義:

create table frclubs
(
    -- here they are

pid number(2) not null,
clubid number(2) not null,
constraint cPIDCLUBIDPK primary key(pid,clubid),
constraint fPIDFK foreign key(pid) references friends(pid),
constraint fCLUBIDFK foreign key(clubid) references clubs(clubid)
);

次の 2 つの選択肢があります。

  1. create table frclubsDDL ステートメントの空白行を削除します。

  2. SQL*PLUS がスクリプト発行SET SQLBLANKLINES ONコマンドの空白行を無視できるようにします。

于 2013-08-17T21:50:43.440 に答える