【正文】
在增加39。項。下面是創(chuàng)建基本表的 SQL 語句:create table 讀者信息(borrownumber char(10) not null primary key,number char(10) not null,password char(10) not null,mname char(30) not null, sex char(5), class char(50) , char(50), remark char(100) , )create table 管理人員信息( worknumber char(10) not null primary key, password char(10) not null, mname char(30) not null, sex char(5), telephone char(11) , ) create table 借閱圖書信息(booknumber char(10) not null primary key,borrownumber char(10) not null primary key,rname char(30) not null,bookname char(50) not null, borrowamount char(10) not null,borrowtime datetime not null, returntime datetime, overtime char(5), ) create table圖書信息( booknumber char(10) not null primary key,bookname char(50) not null,writer char(30) not null,publishplace char(50) not null,price float not null,category char(30) not null,amount tinyint not null,publishtime datetime, remainderamoun tinyint not null,)四、物理結(jié)構(gòu)設(shè)計數(shù)據(jù)庫在物理設(shè)備上的存儲結(jié)構(gòu)與存取方法成為數(shù)據(jù)庫的物理結(jié)構(gòu),它依賴 于選定的數(shù)據(jù)庫管理系統(tǒng)。以下就是在關(guān)系模式的基礎(chǔ)上,由優(yōu)化后的關(guān)系模型轉(zhuǎn)化為合理的物理存儲結(jié)構(gòu),基本信息表如下表所示。評價結(jié)果滿足原設(shè)計要求,可進(jìn)入到物理實施階段。在對時間效率、空間效率、維護(hù)代價和各種用戶要求進(jìn)行權(quán)衡之后,選擇了一個較優(yōu)的方案作為數(shù)據(jù)庫的物理結(jié)構(gòu),該結(jié)構(gòu)符合用戶