关键词不能为空

当前您在: 主页 > 英语 >

实验1 数据库、数据表的建立与数据的插入实验

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-02-14 03:37
tags:

-

2021年2月14日发(作者:联婚)


cation2,anddi


sci


pline e


ducationthirdarticle


product i


onk


now


ledgee


ducation1,a


ndcoal


prod ucti


onprocess2,andproductionpr

oce


ssandthemai


npr

oducti


one


qui


pme ntintr


od


uce


dfourt harticlesecurityeducation:1,a


ndmi


nese


curitymethoda


ndmi


nese


curitymethodim


p lementati


onOrdina


nceinthebyg ivesw


orkersofrightandobligati


ons;2,minesafetyregulationsa


ndope

< p>
n-pitmine


safetymanagementregulati


ons;3,safetyknowle


dgereleva< /p>


nttoitswork


;4int


he pr


oducti


onproce


ss ,vari


oussignsofrecogniti


on,a


ndem


erge


ncymea


suresw


he


ntherei

< p>
sacriticalemergencyandevacuationroute


s;5,a


cci


dentre


scue,self


-hel


pandknowledge< /p>


aboutfirstaid;6,labour


protect i


onprovisi


ons,


efi fthideologicaleducati


on:w


ork ethi


csa


nddedi


cati oneducationb,new(transfer)stafftrainingforne


wstaff(newtransferofficer)andthei


n troducti


onofnewte


chnology


ofpersonnel,traini


ngnewmi


nesafetyeducati


onpartofthetraini


ngofpe


rsonnel.


Third ,newtrai


ning


ofmineper


sonneltime


newmini


ngper


sonneltrai


ningtimeis40hours;ne w


staff(newtransferofficer)andstafftrain inginnewtechnologyjobsfor30hour


npassing t


heexaminationbeforet


heyca


,t


heexternaltrai


nin ginaccorda


ncewiththenee


dsof< /p>


employees,underthetraining


ofu nitsandthe


compa


nytraining


center


cannot,tohaveapl

antoarra


ngeallkindsoftargetedstaffonp arti


cipationinvari


ouste

< p>
chnical


andprofessionaltraini

< p>
ngcoursesandwork


placeatta

< br>chmenttraining.A


ndcomply


w iththefollowi


ngprovi


sions:ar ticlesixt


houtoftraining


prior tot


herequi


redcom


p anytraini


ngce


nteroutproposed traini


ngpla


n,i


ncl


udi


ngtraining


cont ent,size,location,cost,i


nisteredbythea< /p>


udit,supervisorapprovalbeforeimplementat i


dcontactseve


nthoutoftraini< /p>


ngbymine,responsi


bleforsigni< /p>


ngcontractsoragreement



eeight


hout


oftraining


personnel,mustobeyt


helea

< br>derofmanageme


ntdosomethi


n goff,tostrictlyobservet


herule


sandregulati


onsofcommissionedunits,be< /p>


causeIcause


de


conom icl


ossorimage,depe


ndi


ngontheseriousne


ssofthepe


naltyoradmi


nistrativeacti


ou ttrainersm


ustbetargeted,accordingtothet raining


planandlearnt


omaster< /p>


thetraining


content.


Trai


ningduringt


heexaminatio nfailed,stoppingall


duri


ngtra ini


stoparti


cipatei


nvarioustraini


ngcourse


softh etent


harticl


e,uponcompletion oft


raini


ngnee


dstr aini


ngcertificateorgraduationcertificat ea


ndexaminati


onre


sultstot


hemine


andcom

< br>panytraini


ngce


tresforther ecord,nocertificatesa


ndgrade


s,towriteale


arning


ortraini


ngarenotqualifie


d,stoppe


dtraini


ngAllbonuses.11thout


oftreatmentfortrainingpersonne


landl aborrespectivel


y,a


ccordingto t


hereleva


ntregulati

ationonfees,le


cturefeesa


pp r


ovedbytheM


ineUnifieda


uditre


portcla


management systeminordert


oseri


ouslyimpl ementt


he


onfirst


oa ch,a


ccor


dingto


ho'


sincharge,w


hoi


sre sponsi


blefor


hepri


nci


ple


ofstrengthe


ningsafeproducti


onma


nagement


byobjectives,maximizecontrolofvari

< p>
ousty


pesofa


cci

< br>dentsfromhappeni


ng,a


chiev et


hegoal


ofensuringsecuri


ty,thesystemisformulate


rti


clese


curitytargetofdevel


ope


da


ccor


dingt


ocoalin


实验


D01:



数据库、数据表的建立与数据的插入实验



一、实验名称和性质




所属课程



实验名称



实验学时



实验性质



必做


/


选做



数据库原理




数据库、


数据表的建立与数据


的插入



2


?


□验证



□综合



□设计



?


□必做



□选做




二、实验目的



1




了解和掌握


SQL Server


系统;



2




掌握数据库建立的几种方法;



3




掌握数据表的建立方法和数据表中数据的插入方法。




三、实验的软硬件环境要求



硬件环境要求:




PC


机(单机)




使用的软件名称、版本号以及模块:




Windows XP


下的


SQL Server 2000


(或



SQL Server 2005




四、知识准备



前期要求掌握的知识:



1



SQL Server 2000


主要的管理工具和实用程序有以下


6


个 ,其中企业管理器和查询分析器是本课程实验


中用到的工具。




服务管理器:主要作用是用来启动数据库服务器的实时服务、 暂停和停止正在运行的服务;



企业管理器:用户和系统管理员 可以使用它来管理网络、计算机、服务和其它系统组件;



查询 分析器:


可以使用户交互式地输入和执行各种


Transact -SQL


语句,


并且迅速地查看这些语句的执行结


果;



服务器网络实用工具:配置本计算机作为服务 器时允许使用的连接协议;



客户端网络实用工具:配置客户端 的网络连接,管理和测定客户端的网络库等;



导入和导出数据 :采用


DTS


导入


/

< br>导出向导来完成;



联机帮助文档;




2



SQL Server 2000


安装成功后,


系统会自动创建


6


个系统数据库:


Master



Model



Msdb


、< /p>


Tempdb



Pubs



Northwind




五、实验内容



1


.创建数据库和查看数据库属性;



2


、在企业管理器中和查询分析器中创建数据表;



3


、企业管理器中和查询分析器中数据表中数据的 插入;




六、验证性实验



(



)


在企业管理器中创建数据库、数据表和进行数据插入



1


.创建数据库



1


)使用企业管理器建立数据库的步骤

< br>


1


)单击“开始”菜单下“所有程序”→“

< p>
Microsoft SQL Server




→“企业管理器”。



2


)选中需要在其上创建数据库的服务器,点击前面的“+”号,使其展示为树形目


录。



3


)选中“数据库”文件夹,单击鼠标右键,在弹出菜单上选择“新建数据库”,见图


1 -1




cation2,anddi


sci


plinee


ducation thirdarticle


producti


onk

< p>
now


ledgee


ducation1,a


ndcoal


producti


onpro cess2,andproductionpr


oce


ssan dthem


ai


npr


oducti< /p>


one


qui


pmentintr


oduce


dfourtharticlesecurityeduc ation:1,a


ndmi


nese


curitymethoda


ndmi


nese


curitymethodim


plementati


onOrdina


nceinthebygivesw


orke rsofrightandobligati


ons;2,minesafetyreg ulationsa


ndope


n-pitmine

< p>
safetymanagementregulati


ons;3,saf etyknowle


dgereleva


nttoitswor k


;4int


hepr


oducti< /p>


onproce


ss,vari


ouss ignsofrecogniti


on,a


ndem

< p>
erge


ncymea


suresw


he


ntherei


sacriticalemer gencyandevacuationroute


s;5,a


cci


dentre


scue,self


-hel


pandknowledge


aboutfirst aid;6,labour


protecti


onprovis i


ons,


efifthideologicaleducat i


on:w


orkethi


csa


nddedi


cationed


ucati onb,new(transfer)stafftrainingforne


wsta ff(newtransferofficer)andthei


ntroducti< /p>


onofnewte


chnology


o fpersonnel,traini


ngnewmi


nesa fetyeducati


onpartofthetraini


ngofpe


,newtrai


ning


ofmineper


sonneltime


newmini< /p>


ngper


sonneltrai


nin gtimeis40hours;new


staff(newtransferoffi cer)andstafftraininginnewtechnologyjobsfor30hour


npassingt


heexaminationbeforet< /p>


heyca


,t


heexternalt rai


ninginaccorda


ncewiththene e


dsof


employees,underthetrain ing


ofunitsandthe


compa


nytraining


center


cannot,t ohaveapl


antoarra


ngeallkindso ftargetedstaffonparti


cipationinvari


ouste


chnical


andprofes sionaltraini


ngcoursesandwork


placeatta


chmenttraining.A


ndc omply


withthefollowi


ngprovi


sions:articlesixt


houtoftrainin g


priortot


herequi


r edcom


panytraini


ngce

nteroutproposedtraini


ngpla


n,i


ncl


udi


ngtraini ng


content,size,location,cost,i

nistered


bythea


udit,supervi sorapprovalbeforeimplementati


dcontactse ve


nthoutoftraini


ngbymine,res ponsi


bleforsigni


ngcontractso ragreement



eeight


h out


oftraining


personnel,musto beyt


helea


derofmanageme


ntdosomethi


ngoff,tostrictlyobserve t


herule


sandregulati

onsofcommissionedunits,be


causeIcause< /p>


de


conomicl


ossorima ge,depe


ndi


ngontheseriousne


ssofthepe


naltyoradmi


nistrativeacti


outtrainersm


u stbetargeted,accordingtothetraining


plan andlearnt


omaster


thetraining< /p>


content.


Trai


ningdu ringt


heexaminationfailed,stoppingall


duri


ng


traini

< br>stoparti


cipatei


nvarioustr aini


ngcourse


softhetent


harticl


e,uponcompletionoftraini


ngnee


dstraini


ngcerti ficateorgraduationcertificatea


ndexamina ti


onre


sultstot


hem ine


andcom


panytraini

ngce


tresfortherecord,nocertificatesa< /p>


ndgrade


s,towriteale


arning


ortraini


ngarenotquali fie


d,stoppe


dtraini


ngAllbonuses.11thout


oftreatmentfortrai ningpersonne


landlaborrespectivel


y,a


ccordingtot


hereleva


ntregulati


ationonfees,le


cturefeesa


ppr


ovedbytheM


ineUnifieda


uditre


portcla


managementsysteminordert

< br>oseri


ouslyimplem


entt

< p>
he


onfirst


oach,a


ccor


dingto


ho'


sincharge,w


hoi


sresponsi

< p>
blefor


nci


ple


ofstrengthe


ningsafeproducti


onma


nagement


byobjectives,max imizecontrolofvari


ousty


pesof a


cci


dentsfromhappeni

< br>ng,a


chievet


hegoal

< br>ofensuringsecuri


ty,thesystemisformul ate


rti


clese


curity targetofdevel


ope


da


ccor


dingt


ocoalin




1-1


随后在数据库属性对话框的 常规页面中,输入数据库名“学生选课”,如图


1


< p>
2


所示:




1-2


数据库属性对话框有


3


个页面:常规 页码、数据文件页面和事务日志页码。分别用来义数据



库名、 数据文件属性和日志文件属性。请结合帮助文档,了解这些页面中选项的含义。



4


)单击“确定”按钮,关闭对话框。在企业管理器窗口中出现“学生 选课”数据库标志,表明已经成功


创建数据库。



5




SQL Server


企业管理器中,右键单击“学生选课”数据库,在弹出菜单中选择“属< /p>



性”,将弹出一个对话框,显示“学生选课”数据库的属性。





2


.创建数据库表


< br>cation2,anddi


sci


plinee


ducationthirdarticle


producti


onk


now


ledgee

< br>ducation1,a


ndcoal


producti


onprocess2,andproductionpr


oc e


ssandthem


ai


npr


oducti


one


qui


pmentintr


oduce


dfourthart iclesecurityeducation:1,a


ndmi


nese


curitymethoda


ndmi


nese


curitymethodim


pleme ntati


onOrdina


nceinthebygives w


orkersofrightandobligati


ons ;2,minesafetyregulationsa


ndope

n-pitmine


safetymanagementregulati


ons;3,safetyknowle


dgereleva

< p>
nttoitswork


;4int


hepr


oducti


onproce


ss,var i


oussignsofrecogniti


on,a


ndem


erge


ncymea


suresw


he


ntherei

sacriticalemergencyandevacuationroute


s;5,a


cci


dentre


scu e,self


-hel


pandknowledge

< p>
aboutfirstaid;6,labour


protecti


onprovisi


ons,


efifthi deologicaleducati


on:w


orkethi


csa


nddedi


cationed


ucationb,new(transfer)stafftrainingforn e


wstaff(newtransferofficer)andthei

< p>
ntroducti


onofnewte


chno logy


ofpersonnel,traini


ngnewm i


nesafetyeducati


onpartofthet raini


ngofpe


rsonnel.

Third,newtrai


ning


ofmineper


sonneltime


newmini


ngper


sonneltrai


ningtimeis40h ours;new


staff(newtransferofficer)andsta fftraininginnewtechnologyjobsfor30hour


n passingt


heexaminationbeforet


heyca


,t


heexternaltrai


ninginaccorda


ncewiththenee

dsof


employees,underthetraining


ofunitsandthe


compa


nytrai ning


center


cannot,tohaveapl


antoarra


ngeallkindsoftargeteds taffonparti


cipationinvari


ous te


chnical


andprofessionaltrai ni


ngcoursesandwork


placeatta< /p>


chmenttraining.A


ndcomply

< p>
withthefollowi


ngprovi


s ions:articlesixt


houtoftraining

priortot


herequi


redcom

< p>
panytraini


ngce


nteroutp roposedtraini


ngpla


n,i


ncl


udi


ngtraining

< br>content,size,location,cost,i


nistered bythea


udit,supervisorapprovalbeforeimpl ementati


dcontactseve


nthoutof traini


ngbymine,responsi


blefo rsigni


ngcontractsoragreement



eeight


hout


oftrain ing


personnel,mustobeyt


helea< /p>


derofmanageme


ntdosomethi

< p>
ngoff,tostrictlyobservet


herule


sandregulati


onsofcommissionedun its,be


causeIcause


de

conomicl


ossorimage,depe


ndi


ngontheseriousne


ssofthepe


naltyoradmi


nistrativeacti


outtrainersm


ustbetargeted,accordin gtothetraining


planandlearnt


o master


thetraining


content.


Trai


ningduringt


heexa minationfailed,stoppingall


duri

ngtraini


stoparti


cipatei


nvarioustraini


ngcourse

softhetent


harticl


e,uponcom pletionoftraini


ngnee


dstraini


ngcertificateorgraduationcertif

< br>icatea


ndexaminati


onre


sultstot


hemine


andcom< /p>


panytraini


ngce


tres fortherecord,nocertificatesa


ndgrade


s,towriteale


arning


ort raini


ngarenotqualifie


d,stopp e


dtraini


ngAllbonuses.11thout


oftreatmentfortrainingpersonne

landlaborrespectivel


y,a


cco rdingtot


hereleva


ntregulati


ationonfees,le


cturefeesa


ppr


ovedbytheM


ineUnified a


uditre


portcla


man agementsysteminordert


oseri


ou slyimplementt


he


onfirst


oach,a


ccor


dingto


ho'


sincharge,w


hoi


sresponsi


blefor


nci


ple


ofstrengthe


ningsafep roducti


onma


nagement

byobjectives,maximizecontrolofvari


ous ty


pesofa


cci


dentsf romhappeni


ng,a


chievet


hegoal


ofensuringsecuri


ty ,thesystemisformulate


rti


cles e


curitytargetofdevel


ope

< p>
da


ccor


dingt


ocoalin



1




打开刚才创建的“



学生选课”



数据库,



并在“


SQL Server Enterprise


Mananger


”窗口的右边窗口中用鼠标右键点击“表”对象,选 择“新建表”命令,打开


SQL


Server


的表编辑器窗口,如图


1



3


所示:




1-3




2


)根据表


1



1


所示的表结构,添加新列。




1



1


学生表



列名



学号



姓名



性别



出生日期



专业名



所在系



联系电话



数据类型



Char


Char


Bit


smalldatetime


Char


Char


char


长度



6


8


1


4


10


10


11


是否允许为空



N


N


N


N


N


N


Y




3


)点击工具栏上的“保存”按钮, 在弹出的“选择名称”对话框中输入表名“学生


-


表”,然后 单击“确定”按钮,关闭表编辑器窗口,完成新表的创建。




4


)同理,根据表


1

< br>-


2


建课程表,根据表


1



3


建选课表




1



2


课程表



列名



课程号



课程名



学时



学分



数据类型



Char


Char


Tinyint


Tinyint


长度



6


20


1


1


是否允许为空



N


N


N


N




1



3


选课表



列名



学号



课程号



成绩




数据类型



Char


Char


Tinyint


长度



6


3


1


是否允许为空



N


N


-


-


-


-


-


-


-


-



本文更新与2021-02-14 03:37,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/654484.html

实验1 数据库、数据表的建立与数据的插入实验的相关文章

  • 爱心与尊严的高中作文题库

    1.关于爱心和尊严的作文八百字 我们不必怀疑富翁的捐助,毕竟普施爱心,善莫大焉,它是一 种美;我们也不必指责苛求受捐者的冷漠的拒绝,因为人总是有尊 严的,这也是一种美。

    小学作文
  • 爱心与尊严高中作文题库

    1.关于爱心和尊严的作文八百字 我们不必怀疑富翁的捐助,毕竟普施爱心,善莫大焉,它是一 种美;我们也不必指责苛求受捐者的冷漠的拒绝,因为人总是有尊 严的,这也是一种美。

    小学作文
  • 爱心与尊重的作文题库

    1.作文关爱与尊重议论文 如果说没有爱就没有教育的话,那么离开了尊重同样也谈不上教育。 因为每一位孩子都渴望得到他人的尊重,尤其是教师的尊重。可是在现实生活中,不时会有

    小学作文
  • 爱心责任100字作文题库

    1.有关爱心,坚持,责任的作文题库各三个 一则150字左右 (要事例) “胜不骄,败不馁”这句话我常听外婆说起。 这句名言的意思是说胜利了抄不骄傲,失败了不气馁。我真正体会到它

    小学作文
  • 爱心责任心的作文题库

    1.有关爱心,坚持,责任的作文题库各三个 一则150字左右 (要事例) “胜不骄,败不馁”这句话我常听外婆说起。 这句名言的意思是说胜利了抄不骄傲,失败了不气馁。我真正体会到它

    小学作文
  • 爱心责任作文题库

    1.有关爱心,坚持,责任的作文题库各三个 一则150字左右 (要事例) “胜不骄,败不馁”这句话我常听外婆说起。 这句名言的意思是说胜利了抄不骄傲,失败了不气馁。我真正体会到它

    小学作文