- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
实验一 数据库的建立和维护(The establishment and maintenance of a database)
实验一 数据库的建立和维护(The establishment and maintenance of a database)
Experiment 1: database establishment and maintenance
The experiment purpose
Master the ability to set up databases and tables, enter data into the database, modify data, and delete data.
The experiment content,
Set up database and design each table, enter multiple actual data, and realize the increase, deletion and operation of data.
Experimental steps:
Create a student management database called XSGL, which contains basic information about students, course information and course information. The database XSGL contains the following three tables:
(l) student: basic information for students.
(2) course: course information sheet.
(3) sc: student selection form.
The structure of each table is shown in table 1, table 2 and table 3.
Table 1 student information table: student
Whether the column name data type length is allowed to be null
Sno character type 10 no
Sname character type 10 no
Ssex character type 2 no
The sage integer type is
Sdept character type 4 no
Table 2 course information table: course
Whether the column name data type length is allowed to be null
Cno character type 3 no
Cname character 30 no
The credit integer type is
Pcno character 3 is
Table 3 student selection table: sc
Whether the column name data type length is allowed to be null
Sno character type 10
Cno character 30 no
The grade integer type is
1. Establishment of database:
1. Establishment of visual interface:
(a) in SQL server, enterprise manager - new database;
(b) database designer in VFP; new database;
2. Establishment of command:
(a) in SQL server, t-sql statements are used in the query analyzer:
The CREATE DATABASE XSGL
ON (NAME = XSGL_DATA,
FILENAME = E: \ XSGL MDF,
SIZE = 10 MB,
MAXSIZE = 50 MB,
FILEGROWTH = 5%)
The LOG ON
(NAME = XSGL_Log,
FILENAME = e: \ XSGL_Log LDF,
SIZE = 2 MB,
MAXSIZE = 5 MB,
FILEGROWTH = 1 MB)
(b) use SQL statements in the command window in VFP:
The CREATE DATABASE XSGL
Ii. Establishment of the table:
您可能关注的文档
- 光纤放大器中光脉冲传输特性的影响(Influence of optical pulse transmission characteristics in optical fiber amplifier).doc
- 党报理论版要有创新的形式和内容(Party newspaper theory edition should have innovative form and content).doc
- 党章学习心得(Party constitution learning experience).doc
- 兢兢业业,实干为真——记寨里中心小学曹亚荣老师(Conscientiously, it is true -- the village center primary school, cao yron).doc
- 全世界199个国家首都坐标(The coordinates of the capital of 199 countries around the world).doc
- 全国计算机等级考试三级B类笔试试题(96年4月)(National computer rank examination level 3 B test paper (April 96)).doc
- 全方位信息管理让城市生活更聪明(Omnidirectional information management makes city life more smart).doc
- 全套 管理沟通1 华东理工网络学院在线作业(Complete management communication 1 east China institute of technology network college online homework).doc
- 全球文明走向与人学的发展(The development of global civilization and human learning).doc
- 全面战争三国地名(The names of all three countries in the war).doc
文档评论(0)