別のstart.sqlファイルを使用してcr_tb.sqlファイルを開始しようとすると、エラーが発生します。unknown command beginning pid number...
私は何を間違っていますか?(ドロップボックスのリンクを掲載しました)
別のstart.sqlファイルを使用してcr_tb.sqlファイルを開始しようとすると、エラーが発生します。unknown command beginning pid number...
私は何を間違っていますか?(ドロップボックスのリンクを掲載しました)
問題の根源は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 つの選択肢があります。
create table frclubs
DDL ステートメントの空白行を削除します。
SQL*PLUS がスクリプト発行SET SQLBLANKLINES ON
コマンドの空白行を無視できるようにします。