- 25
- 0
- 约1.65万字
- 约 23页
- 2017-06-10 发布于河南
- 举报
mysql练习题及答案(国外英文资料)
mysql练习题及答案(国外英文资料)
Mysql query for statement exercises
The definition of Sutdent table
The field name field describes the primary key foreign key non-empty unique from the data type
The Id number INT (10) is not
Name VARCHAR (20) whether or not
Sex gender VARCHAR (4) whether no
Whether the Birth YEAR of Birth is YEAR after YEAR
Department Department VARCHAR (20) whether no
Address home Address VARCHAR (50) whether no
The definition of the Score table
The field name field describes the primary key foreign key non-empty unique from the data type
The Id number INT (10) is whether it is
The Stu_id number INT (10) is no
The name of the C_name class VARCHAR (20) is no or no
Grade score INT (10) whether no
1. Create student and score table
CREATE TABLE student
Id INT (10) NOT NULL UNIQUE PRIMARY KEY,
Name VARCHAR (20) NOT NULL,
Sex VARCHAR (4),
Birth YEAR.
Department VARCHAR (20),
Address VARCHAR (50)
);
Create the score table. SQL code is as follows:
CREATE TABLE score
Id INT (10) NOT NULL UNIQUE PRIMARY KEY AUTO_INCREMENT,
Stu_id INT (10) NOT NULL,
C_name VARCHAR (20),
Grade INT (10)
);
Add records for the student table and the score table
The INSERT statement that inserts records to the student table is as follows:
INSERT INTO student VALUES (901, boss, man, 1985, computer system, Beijing haidian district);
INSERT INTO student VALUES (902, 2, man, 1986, Chinese department, Beijing changping district);
INSERT INTO student VALUES (903, 3, girl, 1990, Chinese department, yongzhou, hunan);
INSERT INTO student VALUES (904, li 4, man, 1990, English department, fuxin city, liaoning province);
INSERT INTO student VALUES (905, wang 5, female, 1991, English department, xiamen city);
INSERT INTO student VALUES (906, wang 6, man, 1988, computer department, hengyang city, hunan);
Inserting the record INSERT statement to the score table is as follows:
INSERT INTO score VALUES (NULL, 901, computer, 98)
INSERT INTO score VALUES (NULL, 901, English, 80)
INSERT INTO score VALUES (NULL,
您可能关注的文档
- cpu修改频(国外英文资料).doc
- cmd命令集合(方便查找)(国外英文资料).doc
- crossfire技术讲解(国外英文资料).doc
- CRT电视机常用场输出集成块功能参数电子书(国外英文资料).doc
- CharSequence(国外英文资料).doc
- C++、C 星号打印各种图形(国外英文资料).doc
- cl.exe命令参数详解(国外英文资料).doc
- CSS中各个浏览器兼容的解决办法(国外英文资料).doc
- css常见用法(国外英文资料).doc
- CStringFormat()函数与格式输入与输出(国外英文资料).doc
- 河北盐山中学等校2025-2026学年上学期高三一模化学试卷(含解析).docx
- 河北正定中学2025-2026学年高一上学期期末考试物理试卷(含解析).docx
- 河北张家口市怀安县2025-2026学年第一学期期末教学综合评价八年级地理试卷(含解析).docx
- 河南安阳市殷都区2025-2026学年第一学期期末教学质量检测七年级地理试卷(含解析).docx
- 河南安阳市滑县2025一2026学年第一学期期末学业质量监测八年级地理试题(含解析).docx
- 河南安阳市林州市2025-2026学年上学期期末考试高一政治试题(含解析).docx
- 河南焦作市武陟县第一中学2025-2026学年高一上学期1月月考语文试卷(含解析).docx
- 河南济源市2025-2026学年上学期期末学业质量调研七年级历史试卷(含解析).docx
- PICC导管并发症的紧急处理与护理.pptx
- 河南鹤壁市2025-2026学年高二上学期期末考试生物试题(含解析).docx
最近下载
- Unit 2 Lesson 1 What would you like for breakfast(课件)冀教版(三起)(2024)英语三年级下册.pptx VIP
- 四川省成都市双流区2025年中考“二诊”数学试卷(含答案).docx VIP
- (高清版)DB33∕T 1134-2017 静钻根植桩基础技术规程 .pdf VIP
- 2020年广东省广州市中考数学一模试卷.pdf VIP
- 四川省成都市双流区2025年中考“二诊”数学试卷(解析版).pdf VIP
- 2020年广东省广州市番禺区中考数学一模试卷.pdf VIP
- 学堂在线 雨课堂 学堂云 研究生的压力应对与健康心理 期末考试答案.docx VIP
- 低空经济课件.pptx VIP
- 学堂在线 雨课堂 学堂云 研究生的压力应对与健康心理 章节测试答案.docx VIP
- 2026年江苏农林职业技术学院单招职业适应性测试题库与答案解析.docx VIP
原创力文档

文档评论(0)