【正文】
制造商_產(chǎn)品_into編號(hào)及產(chǎn)品信息 輸入:產(chǎn)品編號(hào)查詢某一產(chǎn)品對(duì)應(yīng)的物流中心 輸出:物流中心編號(hào),貨物價(jià)格,產(chǎn)品名稱,產(chǎn)品規(guī)格,產(chǎn)品單位Create procedure 提取_產(chǎn)品_into(No char(10)=null)As if No is null begin print39。 end else begin Select 物流中心編號(hào),貨物價(jià)格,產(chǎn)品名稱,產(chǎn)品規(guī)格,產(chǎn)品單位 from 提取inner join 產(chǎn)品on = where No = endexecute 提取_產(chǎn)品_into 39。 制造商,零售商查詢某一物流中心信息 輸入:物流中心編號(hào) 輸出:物理中心名稱,聯(lián)系人,地址,電話號(hào)碼,網(wǎng)址Create procedure 物流中心_into(No char(10)=null)As if No is null begin print39。 end else begin Select 名稱,聯(lián)系人,地址,電話號(hào)碼,網(wǎng)站 from 物流中心 where No = enddrop procedure 物流中心_intoexecute 物流中心_into 39。輸入產(chǎn)品編號(hào),輸出產(chǎn)品信息,物流中心信息,制造商信息Create procedure 產(chǎn)品_提取_物流中心_制造商_into(No char(10)=null)As if No is null begin print39。 end else begin Select ,貨物價(jià)格,產(chǎn)品規(guī)格,產(chǎn)品單位, 制造商名稱, 物流名稱, 物流電話 from 提取,產(chǎn)品,制造商,物流中心 where No = = and = = enddrop procedure 產(chǎn)品_提取_物流中心_制造商_intoexec 產(chǎn)品_提取_物流中心_制造商_into 39。(2)數(shù)據(jù)插入插入產(chǎn)品數(shù)據(jù)create procedure 產(chǎn)品數(shù)據(jù)插入(產(chǎn)品編號(hào)char(10), 產(chǎn)品名稱char(20),產(chǎn)品規(guī)格char(10),產(chǎn)品單位char(10),制造商編號(hào)char(10))asinsert into 產(chǎn)品values(產(chǎn)品編號(hào),產(chǎn)品名稱,產(chǎn)品規(guī)格,產(chǎn)品單位,制造商編號(hào))execute 產(chǎn)品數(shù)據(jù)插入39。,39。,39。,39。,39。execute 制造商_產(chǎn)品_into 39。插入制造商、零售商、物流中心數(shù)據(jù)create procedure 數(shù)據(jù)零售商插入(零售商編號(hào)char(10), 聯(lián)系人char(10),地址char(10),電話char(10),網(wǎng)址char(20))asinsert into 產(chǎn)品values(零售商編號(hào),聯(lián)系人,地址,電話,網(wǎng)址)create procedure 數(shù)據(jù)制造商插入(制造商編號(hào)char(10), 聯(lián)系人char(10),地址char(10),電話char(10),網(wǎng)址char(20))asinsert into 產(chǎn)品values(制造商編號(hào),聯(lián)系人,地址,電話,網(wǎng)址)create procedure 數(shù)據(jù)物流中心插入(物流中心編號(hào)char(10), 聯(lián)系人char(10),地址char(10),電話char(10),網(wǎng) 址char(20))asinsert into 產(chǎn)品values(物流中心編號(hào),聯(lián)系人,地址,電話,網(wǎng)址)(3)數(shù)據(jù)修改① 產(chǎn)品數(shù)據(jù)修改:某產(chǎn)品數(shù)據(jù)變化時(shí),輸入該產(chǎn)品編號(hào)以及需修改的屬性,完成對(duì)產(chǎn)品表的修改create procedure 產(chǎn)品數(shù)據(jù)修改(產(chǎn)品編號(hào)char(10), 產(chǎn)品名稱char(20)=產(chǎn)品名稱,產(chǎn)品規(guī)格char(10)=產(chǎn)品規(guī)格,產(chǎn)品單位char(10)=產(chǎn)品單位,制造商編號(hào)char(10)=制造商編號(hào))asupdate 產(chǎn)品set 產(chǎn)品名稱=產(chǎn)品名稱,產(chǎn)品規(guī)格=產(chǎn)品規(guī)格,產(chǎn)品單位=產(chǎn)品單位,制造商編號(hào)=制造商編號(hào)where 產(chǎn)品編號(hào)=產(chǎn)品編號(hào)execute 產(chǎn)品數(shù)據(jù)修改39。,39。,39。,39。,39。② 制造商數(shù)據(jù)修改:某制造商數(shù)據(jù)變化時(shí),輸入該制造商編號(hào)以及需修改的屬性,完成對(duì)制造商表的修改create procedure 制造商數(shù)據(jù)修改( 制造商編號(hào)char(10), 聯(lián)系人char(10)= 聯(lián)系人, 地址char(20)= 地址, 電話號(hào)碼char(10)= 電話號(hào)碼,網(wǎng)站char(20)= 網(wǎng)站)asupdate 制造商set 制造商編號(hào)= 制造商編號(hào), 聯(lián)系人= 聯(lián)系人,地址= 地址,電話號(hào)碼= 電話號(hào)碼,網(wǎng)站= 網(wǎng)站where 制造商編號(hào)= 制造商編號(hào)③ 零售商數(shù)據(jù)修改:某零售商數(shù)據(jù)變化時(shí),輸入該零售商編號(hào)以及需修改的屬性,完成對(duì)零售商的修改create procedure 零售商數(shù)據(jù)修改( 零售商編號(hào)char(10), 聯(lián)系人char(10)= 聯(lián)系人, 地址char(20)= 地址, 電話號(hào)碼char(10)= 電話號(hào)碼,網(wǎng)站char(20)= 網(wǎng)站)asupdate 零售商set 零售商編號(hào)= 零售商編號(hào), 聯(lián)系人= 聯(lián)系人,地址= 地址,電話號(hào)碼= 電話號(hào)碼,網(wǎng)站= 網(wǎng)站where 零售商編號(hào)= 零售商編號(hào) ④物流中心數(shù)據(jù)修改:某物流中心數(shù)據(jù)變化時(shí),輸入該物流中心編號(hào)以及需修改的屬性,完成對(duì)物流中心的修改create procedure 物流中心數(shù)據(jù)修改( 物流中心編號(hào)char(10), 聯(lián)系人char(10)= 聯(lián)系人, 地址char(20)= 地址, 電話號(hào)碼char(10)= 電話號(hào)碼,網(wǎng)站char(20)= 網(wǎng)站)asupdate 物流中心set 物流中心編號(hào)= 物流中心編號(hào), 聯(lián)系人= 聯(lián)系人,地址= 地址,電話號(hào)碼= 電話號(hào)碼,網(wǎng)站= 網(wǎng)站where 物流中心編號(hào)= 物流中心編號(hào)以下輸入剩余組數(shù)據(jù)9開(kāi)始輸入數(shù)據(jù)insert into 制造商values (39。,39。,39。,39。,39。,39。)insert into 零售商values (39。,39。,39。,39。,39。,39。)insert into 產(chǎn)品values (39。,39。,39。,39。,39。)insert into 物流中心values (39。,39。,39。,39。,39。,39。)insert into 倉(cāng)庫(kù)values (39。,39。,39。,39。)insert into 存放values(39。,39。,39。,39。,39。)insert into 管理values(39。,39。,39。,39。)insert into 制造values(39。,39。,39。,39。)insert into 運(yùn)輸values(39。,39。,39。)insert into 提取values(39。,39。,39。)開(kāi)始輸入數(shù)據(jù)insert into 制造商values (39。,39。,39。,39。,39。,39。)insert into 零售商values (39。,39。,39。,39。,39。,39。)insert into 產(chǎn)品values (39。,39。,39。,39。,39。)insert into 物流中心values (39。,39。,39。,39。,39。,39。)insert into 倉(cāng)庫(kù)values (39。,39。,39。,39。)insert into 存放values(39。,39。,39。,39。,39。)insert into 管理values(39。,39。,39。,39。)insert into 制造values(39。,39。,39。,39。)