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

正文內(nèi)容

服裝銷售管理系統(tǒng)(數(shù)據(jù)庫)-預覽頁

2025-05-01 21:42 上一頁面

下一頁面
 

【正文】 select 商品號=商品號 from inserted set 更新前銷售數(shù)量 = (select 銷售數(shù)量 from 銷售信息表 where ( 商品號 =)) select 更新后銷售數(shù)量 = 銷售數(shù)量 from inserted select 庫存量=庫存量from 庫存信息表 where =商品號 update 庫存信息表 set 庫存量=庫存量 庫存信息表,inserted set 庫存量=庫存量5 where (=商品號) and ((select 銷售數(shù)量 from inserted ) is not null)go 創(chuàng)建觸發(fā)器,更新商品信息表中的銷售價格,銷售信息表中的銷售金額自動統(tǒng)計 use 服裝銷售管理系統(tǒng) go create trigger 銷售金額自動統(tǒng)計 on 商品信息表 for update as declare 銷售價格 decimal(6,2) declare 商品號 nchar(8) select 銷售價格=銷售價格 from inserted select 商品號=商品號 from inserted update 銷售信息表 set 銷售金額=銷售數(shù)量*銷售價格 where =商品號 go 創(chuàng)建登錄用戶:創(chuàng)建登錄用戶和數(shù)據(jù)庫用戶 use 服裝銷售管理系統(tǒng) go create login mylogin with password=39。goselect * from 商品信息表 select * from 銷售信息表select * from 庫存信息表4. 實現(xiàn)部分:信息錄入:use 服裝銷售管理系統(tǒng)go insert into 商品信息表(商品號,商品名,商品類型,商品描述,商品圖,銷售價格)select 39。,39。,39。 union select 39。,39。,39。 unionselect 39。,39。,39。 unionselect 39。,39。,39。 unionselect 39。,39。,39。 unionselect 39。,39。,39。unionselect 39。,39。,39。 unionselect 39。,39。,39。 unionselect 39。,39。,39。 gouse 服裝銷售管理系統(tǒng)goinsert into 銷售信息表(商品號,日期,銷售數(shù)量 ,銷售金額 )select 39。,39。,39。,39。,39。,39。,39。,39。,39。,39。,39。,39。,39。,39。,39。,39。,39。 ,39。,39。,39。,39。,39。,39。,39。,39。,39。,39。 update 銷售信息表 set 銷售數(shù)量 =銷售數(shù)量+5 select * from 服裝信息_T where 商品號=39。 update 商品信息表 set 銷售價格= where 商品號=39。5. 程序測試:6. 總結:通過本次的課程設計,我對數(shù)據(jù)庫的基本概念掌握的更加深入,結合實際的操作和設計,鞏固了課堂上所學的知
點擊復制文檔內(nèi)容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1