一、實驗目的:
掌握檢視的建立,刪除,查詢,更新
二、實驗內容及結果:
1建立資訊系的學生檢視。
create view is_student
asselect sno,sname,sage,s***
from student
where sdept='is'
2、建立資訊系的學生檢視,並要求進行修改和插入操作時仍需保證該試圖只要資訊系的學生。
drop view is_student
gocreate view is_student
asselect sno,sname,sage,s***
from student
where sdept='is'
with check option
3、建立資訊系選修了1號課程的學生的檢視。
create view is_s1(sno,sname,grade,s***)
asselect
from student,sc
where sdept ='is' and
and'1'4、建立資訊系選修了1號課程且成績在60分以上的學生的檢視。
create view is_s2
asselect sno,sname,grade s***
from is_s1
where grade>=60
5、定義乙個反映學生出生年份的檢視。
create view s_bt(sno,sname,s***,sbirth)
asselect sno,sname,s***,2013-sage
from student
6、見學生的學號及他的成績定義為乙個檢視。
create view s_g(sno,g**g)
asselect sno,**g(grade)
from sc
group by sno
7、將sstudent 表中所有女生記錄定義乙個檢視。
create view f_student(f_sno,name,***,age,dept,s_entrence)
asselect
from student
where s***='女'
8、刪除檢視:s _bt
drop view s_bt;
刪除檢視:is_s1
drop view is_s1
9、在資訊系的學生中找出年齡小於25歲的學生。
select sno,sage
from is_student
where sage<25
10、查詢選修了1號課程的資訊系的學生。
select is_
from is_student,sc
where is_ and '1'
11、在s_g檢視中查詢平均成績在50分以上的學生學號和平均成績。
select sno,**g(grade)
from sc
group by sno
h**ing **g(grade)>=50
12、將資訊系學生檢視is_student中學號為***的學生姓名改為「劉晨2」。
update is_student
set sname='劉晨'
where sno='20021512'
13、向資訊系學生檢視is_student中插入乙個新的學生記錄,其中學號為20021520,姓名為趙高,年齡20歲,性別為女
。insert
into student(sno,sname,s***,sage,sdept)
values('20021520','趙高','女',20,'is');
14、刪除資訊系學生檢視is_student中的學號為***的記錄。
delete
from is_student
where sno='20021520'
MATLAB實驗四實驗報告
matlab實驗報告 班級 姓名 學號實驗成績 實驗名稱 符號計算日期 指導教師 試驗目的 1 掌握反函式和復合函式的求解方法。2 掌握符號微積分的求解方法。3 掌握符號代數方程和微分方程的求解方法。實驗裝置 安裝matlab7.0以上版本的pc機。實驗方法流程及結果分析 1.對符號表示式進行如下操...
345 實驗報告四
實驗專案名稱 實驗四總賬管理系統日常業務處理成績評定 實驗地點 實驗樓erp實驗中心實驗時間 2011年4月24日 學生姓名 黃婉婷學號 45號 班級 09注會 3 班 一 實驗目的和要求 1 掌握用友通軟體中總賬系統日常業務處理的相關內容。2 熟悉總賬系統日常業務處理的各種操作。3 掌握憑證管理 ...
PROE實驗報告四
pro e高階應用技術 實驗報告 班級學號 姓名哈爾濱理工大學機械動力工程學院機械工程實驗中心 2015年11月 實驗四引數化齒輪建模 一 實驗目的 1 掌握表示式和方程的建模方法 2 熟悉工具命令中的應用 二 實驗內容及步驟 使用pro e提供的關係和引數功能,並結合 方程建立曲線 等高階命令,建...