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

正文內容

甘全中數(shù)據(jù)庫實驗-wenkub

2023-05-02 06:56:10 本頁面
 

【正文】 9。C0739。C0539。各屬性名為Sno學號,Cno課程號和Grade考試成績,要求Sno和Cno不能為空,且取值唯一,Sno+ Cno為鍵碼。,39。S0139。insert into Reports(Sno,Cno,Grade)values(39。,90)。C0239。,39。S0339。insert into Reports(Sno,Cno,Grade)values(39。,90)。C0339。 create unique index Couo on Courses(Cno)。2.掌握基本表的插入、刪除與修改。五、實驗學時:2學時六、實驗重點及難點1.TSQL語句對基本表的定義進行刪除與修改,并插入基本表數(shù)據(jù)。 在Students 表中增加屬性列Sentrancedate②將Sage(年齡)的數(shù)據(jù)類型改為SMALLINT型。 SQL語句:alter table Students drop constraint UQ__Students__52723D276262D465。 因為Students表中有Reports表的外碼,故只有刪除Repors表后才能刪除Students表。 向表中添加元組①將一個學生元組(S01,王建平,男,21,計算機)添加到基本表Students中。王建平39。自動化39。S0239。女39。insert into Students (Sno,Sname,Ssex,Sage,Sdept)values (39。,39。)。李偉39。數(shù)學39。,39。,18,39。S0639。男39。執(zhí)行結果:③向Courses表插入元組(‘C01’,’英語’,’’,4)。英語39。運行結果:④請同學們用這個命令,將其余6門課程的信息插入Courses表中。數(shù)據(jù)結構39。Insert into Courses (Cno,Cname,Pre_Cno,Credits )values (39。,39。C0439。C0339。,39。,3)。網絡原理39。insertinto Courses (Cno,Cname,Pre_Cno,Credits )values (39。,39。 SQL語句: insert into Reports(Sno,Cno,Geade)values(39。,92)。運行結果為: (Sname)、學號(Sno)、所在系(Sdept)。運行結果為: (Sno)和姓名 (Sname)。其命令為:select Sname,Sage from Students where Sage between 18 and 22。其命令為:select Sno,Sname,Sage from Students where Sdept in(39。,39。其命令為: select Sname,Sno,Ssex from Students where Sname like 39。DB_設計39。 escape 39。其命令為:select *from Reportswhere Grade is null。其命令為:select count(*) 39。其命令為:select count(distinct Sno) 39。其命令為:select avg(Grade) 39。 運行結果為: 查詢選修C01號課程的學生最高分數(shù)。C0139。2016Sage39。 39。 , LOWER (Sdept ) 39。 運行結果為: 案例7:查詢計算機系全體學生的名單 命令為:select Sname from Student where Sdept =39。 運行結果為: 案例10:查詢年齡在20~23歲(包含20歲和23歲)之間的學生的姓名、系別和年齡 命令為:select Sname,Sdept ,Sage from Student where Sage between 20 and 23。,39。)。MA39。 運行結果為: 案例14:查詢學號為201212121的學生的詳細情況 命令為:select * from Student where Sno=39。 運行結果為: 案例16:查詢姓“歐陽”且全名為三個漢字的學生的姓名 命令為:select Sname from Student where Sname like 39。 運行結果為: 案例18:查詢所有不姓劉的學生的姓名、學號和性別 命令為:select Sname ,Sno ,Ssex from Student where Sname not like 39。 escape 39。 escape 39。其命令為: 命令為:select Sno ,Cno from SC where Grade is null。and Sage 20。學生總人數(shù) 39。 from Student 。2.掌握連接、嵌套和集合查詢的各種使用方法。四、注意事項1.注意TSQL各種運算符、控制語句的功能及使用方法。3.多重嵌套的使用。 命令為:select , from Courses first,Courses second where first .Pre_Cno =second .Cno 。)。 ) ) 運行結果為:5.查詢與“S04”號學生在同一個系學習的學生學號(Sno)、姓名(Sname)和系名(Sdept)。運行結果為:6.查詢非自動化系的不超過自動化系所有學生的年齡的學生姓名(Sname)和年齡(Sage)。自動化39。)。運行結果為:8.查詢選修了所有課程的學生姓名(Sname)和所在系。計算機39。 命令為:select Student.* ,SC .* from Student ,SC where =SC .Sno 。 運行結果為: 例3查詢每一門課的間接先修課(即先修課的先修課)。 命令為:select Sno,Sname,Sdept from Student where Sdept in ( select Sdept from Student where Sname =39。 命令為:select Student .Sno ,Sname from Student ,SC,Course where = and = and =39。CS39。CS39。 命令為: select Sname ,Sdept from Student where Sno in (select Sno from SC where Cno =39。139。139。)。20151512239。 union select * from Student where Sage =39。) union select * from Student where Sno in (select Sno from SC where Cno =39。CS39。139。 運行結果為: 例18 查詢計算機系的學生與年齡不大于19歲的學生的差集 命令為:select * from Student where Sdept =39。CS39。二、實驗任務設計一個簡單的設備管理數(shù)據(jù)庫系統(tǒng)(不限),參考課本218頁。 對數(shù)據(jù)進行插入、修改、刪除、查詢。3. 靈活運用索引、視圖、存儲過程、觸發(fā)器等。 邏輯模型: 物理模型:5. 建立好完整的物理模型后,可以用工具(數(shù)據(jù)庫)生成SQL代碼: 物資管理數(shù)據(jù)庫的SQL代碼如下:/*==============================================================*//* DBMS name: Microsoft SQL Server 2008 *//* Created on: 2016/11/5 14:19:34 *//*==============================================================*/if exists (select 1 from sysobjects where id = object_id(39。) drop table 倉庫goif exists (select 1 from sysobjects where id = object_id(39。) drop table 供應goif exists (select 1 from sysobjects where id = object_id(39。) drop table 供應商goif exists (select 1 from sysobjects where id = object_id(39。) drop table 庫存goif exists (select 1 from sysobjects where id = object_id(39。) drop table 職工goif exists (select 1 from sysobjects where id = object_id(39。) drop table 零件goif exists (select 1 from sysobjects where id = object_id(39。) drop table 項目goif exists (select 1 from sysobjects where id = object_id(39。) drop table 領導go/*==============================================================*//* Table: 倉庫 *//*==============================================================*/create table 倉庫 ( 倉庫號 char(10) not null, 職工號 char(10) not nu
點擊復制文檔內容
教學教案相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1