我是新來的sqlplus,並試圖運行一個sql腳本,創建幾個表,但一旦我嘗試運行它,它給了我一個錯誤,說表或視圖不存在我不知道如何解決這個錯誤。 我的腳本是:在sqlplus中創建表時出錯
drop table Borrower;
create table Borrower (
bid char(100) not null,
password char(100) not null,
name char(100) null,
address char(100) null,
phone char(100) null,
emailAddress char(100) null,
sinOrStNo char(100) null,
expiryDate date null,
--type ENUM('student','faculty','staff'),
type char(100) not null,
--CONSTRAINT Btype_check CHECK (type IN ('student','faculty','staff')),
FOREIGN KEY (type) references BorrowerType(type),
PRIMARY KEY (bid));
grant select on Borrower to public;
可能是'drop table borrower'命令 - 你試圖刪除一個不存在的表 –
不,我試過了。它仍然無法創建數據庫。 – BBB
數據庫或表?如果只運行'create'命令會發生什麼? –