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

正文內(nèi)容

每日農(nóng)產(chǎn)品價格行情管理系統(tǒng)設(shè)計課程-wenkub

2023-04-24 01:48:05 本頁面
 

【正文】 me 說明:用戶名稱。類型:varchar長度:20 有關(guān)數(shù)據(jù)機構(gòu):用戶表名字:UserArea 說明:用戶的地址。類型:int長度:4 有關(guān)數(shù)據(jù)機構(gòu):銷售商表名字:DistPhone 說明:銷售商聯(lián)系方式。00239。00439。查詢:表示查詢記錄(根據(jù)查詢條件,顯示相應(yīng)的查詢結(jié)果)供應(yīng)商表的存儲過程:1. 插入 (如果該記錄號已經(jīng)存在,則不能再插入)If exists(select name from sysobjects where name =39。,SupName=39。,SupStyle=12,SupPhone=39。2.修改(根據(jù)記錄號進(jìn)行修改,如果記錄號不存在則不能修改。GOCreate procedure edit_SupplierSupID varchar(10),SupName varchar(25),Suparea varchar(50),SupStyle int,SupPhone varchar(20),SupPW varchar(16)AsBegin transactionUpdate Supplier set SupName=SupName, Suparea=Suparea, SupStyle=SupStyle, SupPhone =SupPhone,SupPW=SupPW where SupID=SupID 。aa39。12365439。del_Supplier39。4. 查詢 (根據(jù)查詢條件,顯示結(jié)果。ERROR=039。 and 39。39。SupName=39。 and 39。39。SupStyle=39。 and 39。39。SupPW=39。39。39。1239。39。)Drop procedure add_ProductInfo 。1239。1239。GOCreate procedure edit_ProductInfoProductID varchar(10),ProductStyle varchar(10),ProductName varchar(50),ProductOrigin varchar(20),ProductPrice Money,SupID varchar(10),DistID varchar(10)AsBegin transactionUpdate ProductInfo set ProductStyle =ProductStyle, ProductName = ProductName,ProductOrigin = ProductOrigin, ProductPrice =ProductPrice,SupID=SupID,DistID=DistID where ProductID=ProductID 。a39。a39。139。GOCreate procedure select_ProductInfoProductID varchar(10),ProductStyle varchar(10),ProductName varchar(50),ProductOrigin varchar(20),ProductPrice Money,SupID varchar(10),DistID varchar(10)AsBeginDeclare where varchar(100)。If(ProductID!=39。+39。39。 ProductStyle =39。)set where=where+39。+ProductName 。 and 39。if(ProductPrice!=39。+39。39。 SupID =39。)set where=where+39。+DistID 。begin transactionexec (sql) If(error!=0)BeginRollback transactionEndElsebegin Commit transactionend End調(diào)用查詢存儲過程:use 每日農(nóng)產(chǎn)品價格管理Exec select_ProductInfo ProductID=39。,ProductName=39。,ProductPrice =39。)Drop procedure add_UserGOCreate procedure add_UserUserID varchar(10),UserName varchar(25),UserPW varchar(16),UserStyle Int,UserPhone varchar(20),UserArea varchar(50)AsBegin transactionInsert into [User] values (UserID,UserName,UserPW,UserStyle,UserPhone,UserArea)If(error!=0)BeginRollback transactionEndElsebegin Commit transactionEnd測試執(zhí)行上述存儲過程use 每日農(nóng)產(chǎn)品價格管理Exec add_User UserID =39。,UserPW =39。,UserArea=39。)Drop procedure edit_User 。,UserName =39。,UserStyle =22,UserPhone=39。If exists(select name from sysobjects where name =39。If(error!=0)BeginRollback transactionEndElsebegin Commit transactionEnd調(diào)用修改存儲過程:use 每日農(nóng)產(chǎn)品價格管理Exec del_User UserID =39。)Drop procedure select_User 。39。UserID=39。 and 39。39。UserPW=39。)set where=where+39。+convert(varchar(15),UserStyle)if(UserPhone39。+39。)set where=where+39。+UserAreaset sql=39。,UserName =39。,UserStyle =39。,UserArea=39。)Drop procedure add_Distributer 。139。12339。GOCreate procedure edit_DistributerDistID varchar(10),DistName varchar(25),Distarea varchar(50),DistStyle Int,DistPhone varchar(20),DistPW varchar(16)AsBegin transactionUpdate Distributer set DistName=DistName, Distarea=Distarea, DistStyle=DistStyle, DistPhone =DistPhone ,DistPW=DistPW where DistID=DistID 。139。333339。GOCreate procedure del_DistributerDistID varchar(10)AsBegin transactionDelete from Distributer where DistID=DistID 。select_Distributer39。Set where=39。)set where=where+39。+DistID 。 and 39。if(Distarea39。+39。39。 DistStyle =39。)set where=where+39。+DistPhone。 and 39。set sql=39。39。39。39。add_C_Summery39。,ProductStyle =39。,Higest_Price =1, Lowest_Price =1, Bulk_Price =1,Ave_Price =1 2.修改If exists(select name from sysobjects where name =39。If(error!=0)BeginRollback transactionEndElsebegin Commit transactionEnd調(diào)用修改存儲過程:use 每日農(nóng)產(chǎn)品價格管理Exec edit_C_Summery C_No=39。,ProductName=39。)Drop procedure del_C_Summery 。 4. 查詢If exists(select name from sysobjects where name =39。Declare sql varchar(150)。39。C_No =39。)set where=where+39。+ProductStyle 。 and 39。if(Higest_Price39。+39。39。Lowest_Price =39。)set where=where+39。+convert(char(10),Bulk_Price )。 and 39。if(ProductID39。+39。Select * from C_Summery where 39。,ProductStyle =39。,Higest_Price =39。,Bulk_Price =39。 設(shè)計心得 數(shù)據(jù)庫課程設(shè)計主要的應(yīng)該目標(biāo)是利用課程中學(xué)到的數(shù)據(jù)庫知識和技術(shù)較好的開發(fā)設(shè)計出數(shù)據(jù)庫應(yīng)用系統(tǒng)。當(dāng)這些都準(zhǔn)備好了之后,我們進(jìn)行模塊的分工。這次課程設(shè)計加深了我們對數(shù)據(jù)庫系統(tǒng)設(shè)計相關(guān)知識以及SQL SERVER 相關(guān)功能的理解。七、參考資料1. 《數(shù)據(jù)庫系統(tǒng)概論》 王珊 薩師煊 2. 《數(shù)據(jù)庫系統(tǒng)概論》 王珊 薩詩軒 3. 《SQL Server 2000 實用教程》 人民郵電出版社 黃梯云 4. 《SQL SERVER2005數(shù)據(jù)庫系統(tǒng)開發(fā)完全手冊》孫明麗 王斌 劉瑩 41 / 41。在這次課程設(shè)計中,我們是以小組的形式設(shè)計與制作這個每日農(nóng)產(chǎn)品價格行情管理系統(tǒng)的,所以整個小組的合作、分工與組員之間的相互協(xié)調(diào)很重要,如在功能結(jié)構(gòu)圖、ER圖等的設(shè)計過程中是以一起討論的形式完成的。當(dāng)每個組員都把自己的分工做好了,最后會由一個人把這些全部組合搭建在一起?,F(xiàn)在我們利用自己學(xué)到的知識設(shè)計并制作一個每日農(nóng)產(chǎn)品價格行情管理系統(tǒng), 通過這次的課程設(shè)計,可以鞏固我們對數(shù)據(jù)庫基本原理和基礎(chǔ)理論的理解,掌握數(shù)據(jù)庫應(yīng)用系統(tǒng)設(shè)計開發(fā)的基本方法,進(jìn)一步提高我們綜合運用所學(xué)知識的能力。,Ave_Price =39。, Lowest_Price =39。,ProductName=39。begin transactionexec (sql) If(error!=0)BeginRollback transactionEndElsebegin Commit transactionendEnd調(diào)用查詢存儲過程:use 每日農(nóng)產(chǎn)品價格管理Exec select_C_Summery C_No =39。+ProductID 。)set where=where+39。 Ave_Price =39。39。+39。if(Bulk_Price39。 and 39。+convert(char(10),Higest_Price)。)set where=where+39。 ProductName =39。39。+39。 if(ProductStyle39。 and 39。error=039。)Drop procedure select_C_Summery。If(error!=0)BeginRollback transactionEndElsebegin Commit transactionEnd調(diào)用修改存儲過程:use 每日農(nóng)產(chǎn)品價格管理Exec del_C_Summery C_No =39。,Higest_Price=9,Lowest_Price=9,Bulk_Price=9, Ave_Price=9 If exists(select name from sysobjects where name =39。 ,ProductStyle=39。)Drop procedure edit_C_Summery。,ProductName=39。GOCreate procedure add_C_SummeryC_No varchar(10) ,ProductStyle varchar,ProductName varchar ,Higest_Price Money ,Lowest_Price Money,Bulk_Price Mo
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1