![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
iDev9
iOS Developer
展开
-
实验二 数据描述、定义实验
-- create schema StudentDB ; /*select *from Student;select *from Course;select *from SC;*/use StudentDB;drop table SC;drop table student;drop table course; create table Student(Sno char(原创 2011-11-12 22:45:54 · 1018 阅读 · 0 评论 -
实验四 数据查询实验
use StudentDB ;/**********************实验四 数据查询实验******************************/-- 1. 查询学生的基本信息;select *from Student;-- 2. 查询“CS”系学生的基本信息;select *from Student where Sdept='CS';-- 3. 查询“CS原创 2011-11-12 22:48:52 · 8214 阅读 · 3 评论 -
数据库部分说明
1、教材:王珊《数据库系统概论》第四版2、主打DBMS:MySQL5.5.15,备用DBMS:MSSQL2000。大部分代码在两个数据库上均可以运行,但若不能满足该条件,尽量采用MySQL代码,少量题目用MySQL比较麻烦,则采用MSSQL代码。3、实验报告下载地址:http://download.csdn.net/detail/honesty2008/37879354、在MySQ原创 2011-11-12 22:35:34 · 605 阅读 · 0 评论 -
实验三 数据更新实验
/*********************实验三 数据更新实验*************************/-- 1. 将数据分别插入表S、C、SC;-- 2. 将表S、C、SC中的数据分别以.SQL文件和.txt文件的形式保存在磁盘上。-- 3. 在表S、C、SC上练习数据的插入、修改、删除操作。(比较在表上定义/未定义主码(Primary Key)或外码(Foreign K原创 2011-11-12 22:47:18 · 5275 阅读 · 1 评论 -
实验五 视图的定义、使用实验
-- 1. 定义“IS”系学生基本情况视图V_IS 并查询结果;create view V_IS asselect * from studentwhere sdept='IS'with check option ;/*drop view v_IS;create view V_IS asselect * from studentwhere sdept='IS';*/-- se原创 2011-11-12 22:49:51 · 9857 阅读 · 0 评论