数据库实验报告总结 篇一:数据库实验报告 洛阳理工学院实验报告 篇二:数据库实验一实验报告 石 家 庄 铁 道 大 学 实 验 报 告 课程名称 数据库原理 信息科学与技术 学院信 1303 班 实验者姓名 实验日期 2025 年 3 月 30 日 评分老师签名 实验项目名称:数据库和表的建立、数据操作 一、实验目的: 掌握使用 SQL 语言进行数据定义和数据操纵的方法
二、实验要求: 建 立 一 个 数 据 库 stumanage , 建 立 三 个 关 系 表student,course,sc
向表中插入数据,然后对数据进行删除、修改等操作,对关系、数据库进行删除操作
三、实验内容: 1 三条建表语句
(原第 5 题) create table student1( sno char(8) not null primary key, sname varchar(20), sex char(2), sdept varchar(20)) create table course1( cno char(6) not null primary key, cname varchar(20)) create table sc1( sno char(8) not null, cno char(6) not null, grade int not null primary key(sno,cno), foreign key (sno) references student1(sno), foreign key (cno) references course1(cno)) 2
在 student 表中插入两条数据: ( 1) 20250101,王飞,男,计算机系 ( 2) 20250102,李丽,女,信息系 insert into student1 values( 20250101 ,