有「學生課程」資料庫,資料庫中包括表

2021-04-14 11:16:42 字數 3609 閱讀 1713

1樓:

1.從庫中查詢計算機系選修資料庫基礎與應用的學生的學號、姓名、成績,按學號遞增專排序,存入遊屬標student中,唯讀。

2.查詢資訊工程系學生的年齡。

3.cover的這個啥沒學過就幫不上忙了~等待高人吧4.(貌似)如果讀取的數值為0,則不允許刪除且允許定義新值ps:不是很肯定,你可以再參考下其他人的答案~

有乙個「學生-課程」資料庫,資料庫中包括三個表: (1)「學生」表student由學號(sno)、姓名(sname)、

有乙個「學生-課程」資料庫,資料庫中包括三個表:

2樓:

以oracle 為例:62616964757a686964616fe58685e5aeb931333365656565

1、create table student( sno  number(10) primary key,

sname varchar2(20),

s*** varchar2(2),

sage  number(10),

sdept varchar2(20)

);2、select * from  student from sdept='計算機' order by sno desc

3、select distinct student.sno,student.sname,student.s***

from student,course,sc

where student.sno=sc.sno and course.cno=sc.cno

and course.ccredit=5 and sc.grade > 60

4、create or  replace trigger my_trig

after delete on student

for each row

begin

delete from sc where sno=:student.sno;

end;

有乙個「學生課程」資料庫,資料庫中包括三個表:

3樓:匿名使用者

create table [student]

(sno char(8) not null primarykey,

sname varchar(8) not null

s*** varchar(8) not null

sage varchar(8) not null

sdept varchar(8) not null

)insert into student

(sno,sname,s***,sage,sdept)

select ('12345', '張三', '男bai', '20', '英語

duzhi') union all

select ('12345', '李三', '女', '21', '英語') union all

select ('12345', '王三', '男', '22', '英語') union all

select ('12345', '趙三', '女', '23', '英語') union all

select ('12345', '錢三dao', '男', '20', '英語') union all

4樓:僕菱華橋清

create

table

學生表bai

(學號du

zhivarchar(12)

notnull,

姓名varchar(20)

notnull,

性別varchar(10)

notnull,

年齡dao

intcheck(年齡》=0

and年齡<=120),

所在系varchar(20)

notnull,

primary

key(學號)

)create

table

課程回表答

(課程號

varchar(12)

notnull,

課程名varchar(20)

notnull,

先修課號

varchar(20)

notnull,

學分int

check(學分》0

and學分<=20),

primary

key(課程號)

)create

table

成績表(學號

varchar(12)

notnull,

課程號varchar(12)

notnull,

成績real

check(成績》=0

and成績<=100),

primary

key(學號,課程號),

foreign

key(學號)

references

學生表(學號),

foreign

key(課程號)

references

課程表(課程號))

5樓:壬竹青冷詩

我也知道是資料庫哇……這樣的回答也算是滿意答案,真是的。

發問題的是叫人家幫他寫程式是吧?這就一言難盡了。

6樓:象長順居念

建立「學生-課程」資料庫:將資料檔案和日誌有乙個「學生-課程」資料庫,資料庫中包括三個表:

(1)「學生」表1使用t-sql語言完成下列操作1

有乙個「學生-課程」資料庫,資料庫中包括三個表

7樓:匿名使用者

使用t-sql語言完成下列操作1、建立「學生-課程」資料庫:將資料檔案和日誌有乙個「學生-課程」資料庫,資料庫中包括三個表: (1)「學生」表1.

8樓:匿名使用者

最討厭這種不加思考發一大堆問題上來,可悲現在的學校,可嘆現在的學生,只會依賴,不會自己研究一下麼

9樓:優之童兒童玩具

我也知道是資料庫哇……這樣的回答也算是滿意答案,真是的。

發問題的是叫人家幫他寫程式是吧?這就一言難盡了。

10樓:滴酒_醉紅顏

1.--查詢女學生的檢視

create view vew_***

asselect * from strudent where s***='女'

2. --顯示學生資訊

create proc pro_studetn@son varchar(20)

asselect * from student where son=@son

3.create trigger tr_deleteon student for deleteasbegin

declare @son varchar(20)select @son=son from inserteddelete sc where son=@sonend就這個了。試試看回。應該沒問答題的。

跪求大神幫幫忙!!!有乙個【學生選修課】資料庫,資料庫中包括三個表,學生表,課程表,成績表 5

學生 課程」資料庫中包含學生表 課程表 學生選課表表

看一下。等下寫寫。1.select sno,s from student where sname like 王 2.select sname from student wheresname not like 劉 3.select sname from student wheresage 20 4.s...

如何檢視資料庫下有什麼表,什麼是資料庫表?

1 首先,開啟乙個的microsoft office access的資料庫管理介面當中,選中左側中的所有表 的選項。2 選中左側中的表 的選項之後,需要查詢的表字段內容。3 然後點選microsoft office access的選單中的 查詢 按鈕。4 就會彈出了乙個查詢和替換 視窗當中,在在查詢...

資料庫查詢,資料庫查詢語句

try this,should be fine select sn,result,ttimefrom select sn,result,ttimefrom tab t1 where not exists select 1 from tab where sn t1.sn and ttime t1.tt...