freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

數(shù)據(jù)庫課程設計學校食堂管理系統(tǒng)精品20xx最新-閱讀頁

2024-12-02 16:40本頁面
  

【正文】 egrowth=1MB ) Log on (name=食堂管理系統(tǒng) _log, Filename=39。, Size=1MB, Maxsize=6MB, Filegrowth=1% ) 數(shù)據(jù)庫基本結(jié)構(gòu)的建立 基本表的建立 學生信息表的創(chuàng)建 Create table student (Sno varchar(20) primary key, Sname varchar(20) not null, Sadd varchar(20), Sphone varchar(20), Sex char(2), Age smallint)。 食堂表創(chuàng)建 Create table cafeteria (Cno varchar(10) primary key, Ccondition char(1), Cevaluation smallint, Ccustomer smallint, Eno varchar(10) not null, Foreign key(Eno) references Employee(Eno))。 菜單信息表的創(chuàng)建 Create table cai (Dno varchar(10) primary key, Wno varchar(10) not null, Cno varchar(10) not null, Dname char(30) not null, 大連交通大學數(shù)據(jù)庫課程設計 17 Dcondition char(1), Price float, Devaluation smallint Foreign key (Cno) references cafeteria(Cno) Foreign key (Wno) references cafeteria(Wno))。 收入表的創(chuàng)建 Create table Ine (Ino varchar(10) primary key, Dno varchar(10) not null, Ine float Foreign key(Dno) references dish(Dno))。 外賣信息表的創(chuàng)建 Create table waimai (Tno varchar(10), Sno varchar(10), Wdate datetime, primary key(Tno,Sno))。 送餐信息表的創(chuàng)建 Create table songcan (Tno varchar(10), Eno varchar(10), Tcondition char(1) not null, Primary key(Tno,Eno), Foreign key(Tno) references dingcan(Tno), Foreign key(Eno) references Employee(Eno))。091231012439。原濤 39。11號 1506樓 39。1345673246539。男 39。 視圖的建立 Create view view_waimai As select sname,Cno,Wno,Dno,Tcount,sum From student,waimai,dingcan Where = and = 索引的建立 建立窗口評價按降序排列的唯一索引 create unique index Wpingjia on Window(Wevaluation desc) 建立食堂信息表的聚簇索引 create clustered index shitanghao on cafeteria(Cno) 建立窗口信息表的聚簇索引 create clustered index windowhao on window(Wno) 建立菜單信息表的聚簇索引 create clustered index Dishhao on dish(Dno) 建立學生評價信息表的聚簇索引 create clustered index pingjiahao on pingjia(Pno) 建立菜收入信息表的聚簇索引 create clustered index Inehao on Ine(Ino) 建立員工信息表的聚簇索引 create clustered index Employeehao on Employee(Eno) 建立學生信息表的聚簇索引 create clustered index studenthao on student(Sno) 建立學生就餐信息表的聚簇索引 create clustered index jiucanhao on jiucan(Sno) 建立外賣信息表的聚簇索引 create clustered index waimaihao on jwaimai(Tno) 建立訂餐信息表的聚簇索引 create clustered index dingcanhao on dingcan(Tno) 建立送餐信息表的聚簇索引 create clustered index songcanhao on songcan(Tno) 大連交通大學數(shù)據(jù)庫課程設計 20 游標的建立 建立以下游標,能實現(xiàn)對表 student 的按行讀取數(shù)據(jù) declare cs_student scroll cursor for select sno,sname,sadd,sphone from student for read only open cs_student fetch from cs_student 不斷執(zhí)行 fetch from cs_student語句,則能不斷顯示每行數(shù)據(jù)。肉末木耳 39。39。8739。 create procedure dish_name as select tno,dname,price,devaluation from dingcan,dish where = 創(chuàng)建一個存儲過程 cai_price,功能如下:輸入菜價,如果大于 ,則輸出菜太貴,并輸出菜價;如果小于 ,則輸出菜比較便宜,并輸出菜價 create procedure cai_price dprice float as declare ddprice float select ddprice=price from dish where =dprice if ddprice= print 39。+convert(char(2),dprice)+39。 else print 39。+convert(char(2),dprice)+39。 安全性的實現(xiàn) 利用圖形化工具 為了提高安全性,建立系統(tǒng)用戶, SQL SERVER 用戶,數(shù)據(jù)庫用戶。 分配的角色名: role, db_owner 利用 TransactSQL 設計一個 SQL server 登錄賬戶,并設置密碼,寫出相應的 SQL 語句。LSL39。12339。 大連交通大學數(shù)據(jù)庫課程設計 22 Sp_grantdbaccess 39。,39。 為數(shù)據(jù)庫用戶創(chuàng)建數(shù)據(jù)庫角色,寫出相應的 SQL 語句。db_owner39。LSL39。與主鍵約束的區(qū)別是:主鍵約束在每個表中規(guī)定的主鍵只能有一個,且主鍵不允許有空值。 比如創(chuàng)建菜單信息表時,規(guī)定了菜名不能重復。 CHECK 約束 CHECK 約束在 SQL Server 中被定義在表約束和列約束中。例如,定義某列的值的范圍,值列表等。 大連交通大學數(shù)據(jù)庫課程設計 23 或者,建好表之后,可以輸入如下語句增加 CHECK 約束。每當在表中插入一條記錄時, SQL Server 會將該列的對應位置填入默認值 。男 39??毡硎疚炊x或未知的值。 在創(chuàng)建訂餐信息表時,所有的屬性全都定義為非空。 規(guī)則 規(guī)則是數(shù)據(jù)庫中對存儲在表的列或用戶定義數(shù)據(jù)類型中值的規(guī)定和限制。規(guī)則與其作用的表或用戶定義數(shù)據(jù)類型是相互獨立的,即表或用戶定義數(shù)據(jù)類型的刪除,修改不會對與之相連的規(guī)則產(chǎn)生影響。dishname39。39。dafen39。39。E:\LSL
點擊復制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1