成績管理系統的資料庫
A. 創建一個學生成績管理系統資料庫。資料庫名為「student」
1. 企業管理器創建一個資料庫,設置好
2. 然後用資料庫管理軟體(太多,網路吧)連進去,創建的代碼都有了
B. 求幫忙··成績管理系統資料庫設計
你是要幹嘛? 要幫你建整個資料庫???
C. 如何用SQL建立一個學生成績管理系統資料庫啊,可以幫幫我么
和普通建庫步驟相同,資料庫右鍵--新建資料庫--依次根據提示完成
D. 如何用SQL建立一個學生成績管理系統資料庫
首先在SQL中利用企業管理器或向導建立一個資料庫,命名為學生管理系統,
啟動SQL Sever服務,運行企業管理器,單擊要創建資料庫的伺服器左邊的加號圖標,展開樹形目錄,在「資料庫」節點上右擊滑鼠,在彈出的快捷菜單中選則「新建資料庫」命令,然後按照提示一步步建立資料庫,不再詳細敘述。
假設學生管理系統下有三個表,分別為學生表、課程表、修課表,表的結構分別如下:
學生表(student) (
學號(sno) 普通編碼定長字元類型,長度7,主碼,
姓名(sname) 普通編碼定長字元類型,長度8,非空,
性別(ssex) 統一編碼定長字元類型,長度1,
年齡(sage) 微整型,
所在系(sdept) 統一編碼可變長字元類型,長度20
)
課程表(course) (
課程號(cno) 普通編碼定長字元類型,長度6,主碼,
課程名(cname) 統一編碼定長字元類型,長度10,非空,
學分(credit) 小整型,
學期(semester) 小整型
)
修課表(sc)(
學號(sno) 普通編碼定長字元類型,長度7,主碼,外碼
課程號(cno) 普通編碼定長字元類型,長度6,主碼,外碼
成績(grade) 小整型,
修課類別(type)普通編碼定長字元類型,長度4
)
則創建表的語句分別為:
create table Student(
Sno char(7) primary key,
Sname char(8) not null,
Ssex nchar(1),
Sage tinyint,
Sdept nvarchar(20)
)
create table Course(
Cno char(6) primary key,
Cname nchar(10) not null,
Credit smallint,
Semester smallint
)
create table SC(
Sno char(7),
Cno char(6),
Grade smallint,
Type char(4),
primary key(Sno,Cno),
Foreign key(Sno) References Student (Sno),
Foreign key(Cno) References Course (Cno)
)
各表的結構大體如此,如有變化可自行修改。 以上資料庫和表就基本建立好了,然後就可以通過數據導入或SQL語句等向資料庫中添加學生的各項具體數據了。
E. 如何用資料庫建立學生成績管理系統
首先,資料庫只是存放數據的,像你說的學生成績管理系統分四大模塊,還有具體功能實現,這些跟資料庫沒關系,或者說這不是資料庫能乾的事,你需要相應的程序頁面來實現,資料庫是存儲數據和配合程序操作數據的。
F. 學生成績管理資料庫包含哪些數據表數據表之間的關系是哪種以什麼欄位聯系
主要有 學生、班級、科目、成績、管理員等表。
學生里關聯了班級;成績中關聯了學生、科目,記錄了成績值;管理員用於登錄。
欄位或代碼的話建議網路查一下學生成績管理系統,現在這樣的系統比較多,可作為參考。
G. 怎麼用SQL資料庫編寫學生成績管理系統啊~~~急救!可以追加分!!
---------更新成績status=2 未提交成績 可修改成績 不能插入更新 學生不可查看, status=1成績已提交 不可修改成績 學生可以查看
------插入數據-------------
--用戶信息表
insert into userinfo values('20101000','123',1)
insert into userinfo values('20101004','123',2)
insert into userinfo values('20101152100','123',3)
select*from userinfo
--學生信息表
insert into studinfo values('20101152100','素雅','女','計科1班')
select *from studinfo
--教師信息表
insert into techerinfo values('20101004','李大為','男')
select *from techerinfo
--成績表
insert into studscoreinfo values('5','1003','20101152100','20101003','匯編','99',1)
select *from studscoreinfo
---教師管理成績--------------
--已提交時
update studscoreinfo set studscore='86' where courseid='1002' and studno='20101152103' and status=2
print '已提交不能修改成績'
select*from studscoreinfo
--未提交時
update studscoreinfo set studscore='90' where courseid='1001' and studno='20101152083' and status=1
print '已修改成績'
--提交成績
--改為未提交
update studscoreinfo set status=2 where courseid='1001' and studno='20101152083'
--改為提交
update studscoreinfo set status=1 where courseid='1001' and studno='20101152083'
select *from studscoreinfo
----------------學生----------
---已提交可查看成績時
select studno,teachno,studscore,course,studscore,status
from userinfo U,studscoreinfo S where U.username=S.studno and U.role=3 and S.studno='20101152083' and S.status=1
print '查詢成功!'
---未提交不可查看成績時
select studno,teachno,studscore,course,studscore,status
from userinfo U,studscoreinfo S where U.username=S.studno and U.role=3 and S.studno='20101152083' and S.status=2
print '還不可查詢'
----------系統管理員 可對學生信息,教師信息,成績信息等進行管理----------
select *from userinfo
select *from studinfo
select *from techerinfo
select *from studscoreinfo
--學生信息表---
--增加
insert into userinfo values('20101152101','123',3)
insert into studinfo values('20101152101','陸瓊','女','計科2班')
select *from studinfo
--修改更新
update studinfo set studsex='男' where studno='20101152101'
select *from studinfo
--刪除
delete from studinfo where studno='20101152101'
select *from studinfo
--教師信息表----
--增加
insert into userinfo values('20101005','123',2)
insert into techerinfo values('20101005','燒餅','男')
select *from techerinfo
--修改
update techerinfo set techname='燒包穀' where techname='燒餅'
select *from techerinfo
--刪除
delete from techerinfo where teachno='20101005'
select *from techerinfo
--成績信息表-----
--增加
insert into studscoreinfo values('6','1004','20101152100','20101002','數據結構','70',1)
select *from studscoreinfo
--修改
update studscoreinfo set studscore='100' where studno='20101152100' and courseid='1004'
select *from studscoreinfo
--刪除
delete from studscoreinfo where studno='20101152100'
select *from studscoreinfo
H. 怎樣做一個成績管理系統資料庫資料庫需要哪些表表裡有哪些欄位
你是要做一個系統,還是只要寫個資料庫就行了,做系統的話分前台後台比較麻煩,只創建個資料庫的話步驟如下:首先要創建資料庫,creat database CJGL,然後在伺服器上設置資料庫的相關內容;然後向資料庫中插入表 use CJGL 括弧里是表的屬性,也就是列。 creat table (.....)這個系統需要3個表 :學生表(學號,姓名,性別,年齡,院系);學號是主鍵;課程表(課程號,課程名,學分,課時);課程號是主鍵;選課表(學號,課程號,成績,課程類型);學號和課程號是主鍵; 創建完以後在給資料庫備份,以免數據丟失。希望對你有幫助。
I. JAVA程序設計 學生成績管理系統(資料庫版)
那個不好意思,我來當壞人吧,沒人會鳥你的,這世界好人沒人想的那麼多,最簡單的自己在網路搜一個,但是一般資料庫或者jdk版本會不兼容,還有你的懸賞太少了,根本沒有人會來回答的,我建議你還自己堆起來吧,這個不難,只是堆代碼而已,現在eclipse都可以拖放swing部件了