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

正文內(nèi)容

四級(jí)數(shù)據(jù)庫(kù)工程師教材習(xí)題參考答案-資料下載頁(yè)

2024-11-08 01:53本頁(yè)面

【導(dǎo)讀】 蝿節(jié)羋螈袁肅薇袇羃芀蒃袇肅肅荿袆螅艿蒞裊羇肁蚃襖肀莇蕿袃膂膀蒅袂袂蒞莁葿羄膈芇薈肆莄薆薇螆膆蒂薆袈莂蒈薅肁芅莄薄膃肇螞薄袃芃薈薃羅肆蒄薂肇芁莀蟻螇肄芆蝕衿芀薅蠆羈肂薁蠆膄莈蕆蚈袃膁莃蚇羆莆艿蚆肈腿薈蚅螈莄蒄螄袀膇莀螃莃芆螃肅膆蚄螂襖羈薀螁羇芄蒆螀聿肇莂蝿蝿節(jié)羋螈袁肅薇袇羃芀蒃袇肅肅荿袆螅艿蒞裊羇肁蚃襖肀莇蕿袃膂膀蒅袂袂蒞莁葿羄膈芇薈肆莄薆薇螆膆蒂薆袈莂蒈薅肁芅莄薄膃肇螞薄袃芃薈薃羅肆蒄薂肇芁莀蟻螇肄芆蝕衿芀薅蠆羈肂薁蠆膄莈蕆蚈袃膁莃蚇羆莆艿蚆肈腿薈蚅螈莄蒄螄袀膇莀螃莃芆螃肅膆蚄螂襖羈薀螁羇芄蒆螀聿肇莂蝿蝿節(jié)羋螈袁肅薇袇羃芀蒃袇肅肅荿袆螅艿蒞裊羇肁蚃襖肀莇蕿袃膂膀蒅袂袂蒞莁葿羄膈芇薈肆莄薆薇螆膆蒂薆袈莂蒈薅肁芅莄薄膃肇螞薄袃芃薈薃羅肆蒄薂肇芁莀蟻螇肄芆蝕衿芀薅蠆羈肂薁蠆膄莈蕆蚈袃膁莃蚇羆莆艿蚆肈腿薈蚅螈莄蒄螄袀膇莀螃莃芆螃肅膆蚄螂襖羈薀螁羇芄蒆螀聿肇莂蝿蝿節(jié)羋螈袁肅薇袇羃芀蒃袇肅肅荿袆螅

  

【正文】 用戶和非 Windows 用戶連接到 SQL Server。 答案 :服務(wù)管理器。 答案 :?jiǎn)?dòng) SQL Server 服務(wù)。 答案 :分為系統(tǒng)數(shù)據(jù)庫(kù)和用戶數(shù)據(jù)庫(kù)。 答案 master、 model、 msdb、 tempdb。 Master 數(shù)據(jù)庫(kù)記錄了所有的系統(tǒng)級(jí)信息。包括登錄帳戶、系統(tǒng)配置、數(shù)據(jù)庫(kù)屬性(如數(shù)據(jù)庫(kù)文件的位置等)等信息。 msdb 提供對(duì)自動(dòng)執(zhí)行任務(wù)的支持。 model是用戶數(shù)據(jù)庫(kù)的樣板數(shù)據(jù) 庫(kù),其中包含所有用戶數(shù)據(jù)庫(kù)的公共信息。 tempdb臨時(shí)數(shù)據(jù)庫(kù),用于存儲(chǔ)用戶創(chuàng)建的臨時(shí)表、用戶聲明的變量以及用戶定義的游標(biāo)數(shù)據(jù)等。 答案 有數(shù)據(jù)文件和日志文件。主數(shù)據(jù)文件的推薦擴(kuò)展名是“ mdf”,輔助數(shù)據(jù)文件的推薦擴(kuò)展名是“ ndf”,日志文件的推薦擴(kuò)展名是“ ldf”。 答案 :可以包含一個(gè)主數(shù)據(jù)文件和 0~ n 個(gè)輔助數(shù)據(jù)文件, 1~ n 個(gè)日志文件。 答案 包含:邏輯文件名、物理存儲(chǔ)位置和文件名、初始大小、增長(zhǎng)方式和最大大小限制 5 個(gè)屬性。 答案 :按數(shù)據(jù)頁(yè)存儲(chǔ),一個(gè)數(shù)據(jù) 頁(yè)大小是 8KB。 答案 :按一個(gè)數(shù)據(jù)頁(yè)能存多少行數(shù)據(jù),這些數(shù)據(jù)需要多少個(gè)數(shù)據(jù)頁(yè)來(lái)估算。 160MB。 答案 :不能小于 model數(shù)據(jù)庫(kù)的大小。 答案 DECLARE @i int, @res int SET @i = 1 SET @res = 5000 while @i = 100 begin SET @res = @res @i SET @i = @i + 1 end print @res 答案 :不必相同。 第 13章習(xí)題參考答案 答案 存儲(chǔ)過(guò)程的作用包括: 模塊化程序設(shè)計(jì) ,提高數(shù)據(jù)的操作性能,減少網(wǎng)絡(luò)流量,可作為安全機(jī)制使用。 答案 ( 1) create proc p1 @lb varchar(20) as select CName,Address,GoodsName,SaleDate,Quantity from Table_Customer a join Table_SaleBill b on = join Table_SaleBillDetail c on = join Table_Goods d on = join Table_GoodsClass e on = where GoodsClassName = @lb ( 2) create proc p2 @lb varchar(20) = 39。家用電器 39。,@mon int as select day(SaleDate), sum(PayAmount) from Table_SaleBill a join Table_SaleBillDetail b on = join Table_Goods c on = join Table_GoodsClass d on = where GoodsClassName = @lb and month(SaleDate) = @mon group by day(SaleDate) ( 3) create proc p3 @lb varchar(20),@sum money output as if exists(select * from able_GoodsClass where GoodsClassName = @lb) select @sum = sum(PayAmount) from Table_SaleBill a join Table_SaleBillDetail b on = join Table_Goods c on = join Table_GoodsClass d on = where GoodsClassName = @lb else print 39。不存在指定類(lèi)別的商品 39。 ( 4) create proc p4 as update Table_SaleBillDetail set Discount = case when 10000 then when between 5000 and 10000 then when between 1000 and 4999 then else 1 end from Table_SaleBillDetail a join Table_SaleBill b on = join Table_Card c on = 答案 ( 1) create function (@lb varchar(20), @nf int) returns int as begin declare @sum int select @sum = sum(Quantity) from Table_SaleBillDetail a join Table_SaleBill b on = join Table_Goods c on = join Table_GoodsClass d on = where GoodsClassName = @lb and year(SaleDate) = @nf return @sum end ( 2) create function (@addr varchar(20)) returns int as begin declare @count int select @count = count(*) from Table_Card a join Table_Customer b on = where address = @addr and State = 39。239。 return @count end ( 3) create function f3(@low int, @high int) returns table as return ( select CName,Address,GoodsName,SaleDate,Quantity from Table_Customer a join Table_SaleBill b on = join Table_SaleBillDetail c on = join Table_Goods d on = where Age between @low and @high) ( 4) create function f4(@lb varchar(20), @nf int) returns table as return (select GoodsName,SaleDate,Quantity,(@lb,@nf) as total from Table_SaleBill a join Table_SaleBillDetail b on = join Table_Goods c on = join Table_GoodsClass d on = where GoodsClassName = @lb and year(SaleDate) = @nf) ( 5) create function f5(@lb varchar(20)) returns @new_table table ( 商品名稱 varchar(30), 單價(jià) money, 銷(xiāo)售日期 datetime, 銷(xiāo)售數(shù)量 int, 銷(xiāo)售總價(jià) money) as begin insert into @new_table select GoodsName, SaleUnitPrice, SaleDate,Quantity, Amount from Table_Goods a join Table_SaleBillDetail b on = join Table_SaleBill c on = join Table_GoodsClass d on = where GoodsClassName = @lb return end 答案 觸發(fā)器的主要作用是: 完成比 CHECK 約束更復(fù)雜的數(shù)據(jù)約束,為保證數(shù)據(jù)庫(kù)性能而維護(hù)的非規(guī)范化數(shù)據(jù)以及實(shí)現(xiàn)復(fù)雜的業(yè)務(wù)規(guī)則 。 答案 插入操作產(chǎn)生的臨時(shí)工作表叫 Inserted,它保存新插入的數(shù)據(jù); 刪除操作產(chǎn)生的臨時(shí)工作表叫 Deleted,它保存被刪除的數(shù)據(jù);修改操作產(chǎn)生兩張臨時(shí)工作表,一個(gè)是 Inserted,用于保存更新后的新數(shù)據(jù),另一個(gè)是 Deleted,用于保存更新前的數(shù)據(jù)。 答案 ( 1) create trigger tri1 on Table_SaleBill for insert, update as declare @score int select @score = Score from inserted update Table_Card set Score = Score + @score where CardID in ( select CardID from inserted ) ( 2) create trigger tri2 on Table_SaleBillDetail for insert, update as update Table_SaleBill set PayAmount = ( select sum() from Table_SaleBillDetail a join inserted b on = ) where SaleBillID in ( select SaleBillID from inserted) ( 3) (a) 后觸發(fā)型觸發(fā)器: create trigger tri3_1
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1