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

正文內(nèi)容

數(shù)據(jù)庫試卷及答案-資料下載頁

2025-06-22 14:53本頁面
  

【正文】 儲過程p_Pro, 要求能夠根據(jù)指定的客戶編號,統(tǒng)計該客戶購買每種產(chǎn)品的產(chǎn)品號、數(shù)量。(8分) CREATE PROCEDURE p_Pro@ CusNo VARCHAR(8) ASSelect CusNo ,ProNo,sum(Quantity)from ProOut where CusNo =@ CusNogroup by CusNo, ProNo(12) 創(chuàng)建一個觸發(fā)器t_Stocks,要求當插入、更新、刪除銷售表(ProOut)的銷售記錄時,根據(jù)銷售數(shù)量(Quantity)的變化,能更新產(chǎn)品表(Product)中相應(yīng)的庫存數(shù)量(Stocks) (8分) create trigger t_Stocks on Productfor insert,delete,updateasupdate Product set Stocks = Stocks Quantity where ProNo=(select ProNo from INSERTED)update Product set Stocks = Stocks + Quantity where ProNo=(select ProNo from DELETED)(13) 備份該數(shù)據(jù)庫Stu_info。(4分)create table customer( cusno char(10) primary key,cusname char(20), address char(20) ,tel char(20))create table product( prono char(10) primary key,proname char(20), price char(20) ,stocks int)create table proout( saledate datetime ,cusno char(10), prono char(10) ,quantity int,foreign key (cusno) references customer (cusno),foreign key (prono) references product (prono),)方法一:使用企業(yè)管理器選中數(shù)據(jù)庫Sales,右擊,選“所有任務(wù)”子菜單,然后點擊“備份數(shù)據(jù)庫”命令,在“備份”選項中選中“數(shù)據(jù)庫-完全”。 網(wǎng)絡(luò)數(shù)據(jù)庫 試題第9頁(共9頁)
點擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1