- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
mysql练习题及答案(MySQL exercises and answers)
mysql练习题及答案(MySQL exercises and answers)
MySQL query exercises
The definition of the Sutdent table
The field name description data type key non empty only increment
Id number INT (10) is whether it is
The name of Name VARCHAR (20) whether or not
Sex VARCHAR (4) sex no no no no no
Year of birth Birth YEAR no no no no no
Department and VARCHAR (20) whether or not
Address home address: VARCHAR (50) no no no no no
The definition of the Score table
The field name description data type key non empty only increment
Id number INT (10) is whether it is
Stu_id number INT (10) whether or not
C_name VARCHAR (20) no no no no no
The Grade fraction of INT (10) no no no no 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 table score. The 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)
);
2. for the student and score tables add record
To the student table INSERT statement to insert records as follows:
INSERT INTO student (VALUES 901, a boss, male , 1985, Department of computer , Beijing Haidian District );
INSERT INTO student VALUES (902, Zhang Dick, male, 1986 , Chinese, Beijing Changping District);
INSERT INTO student VALUES (903 , three, female, 1990 , Chinese, Hunan Yongzhou);
INSERT INTO student VALUES (904, four Lee, male, 1990 , the English Department, Liaoning province Fuxin city);
INSERT INTO student VALUES (905, five King and female, 1991 , the English Department, Fujian province Xiamen city);
INSERT INTO student VALUES (906, six King, male, 1988 , Department of computer, Hunan city of Hengyang province);
To the score table INSERT statement to insert records as follows:
INSERT INTO score VALUES (NULL, 901, the computer, 98);
INSERT INTO score VALUES (NULL, 901, English, 80);
INSERT INTO score VALUES
您可能关注的文档
- english speech短文四篇(英语演讲短文四篇).doc
- english 简历词汇(英语简历词汇).doc
- english像汉语拼音一样记单词 一眼认出单词的意思(English like Chinese Pinyin words as a recognized word).doc
- eepo评价1(eepo评价1).doc
- eink电子书阅读器的一些经验(Some experience of eink e-book reader).doc
- erp成功机率等于零(The ERP success rate is equal to zero).doc
- english词汇解析(英语词汇解析).doc
- erp测试(ERP test).doc
- erp课程学习方法(The learning method of ERP Course).doc
- esb产品说明(ESB product description).doc
- n-gage qd典型问答综合(QD典型问答综合).doc
- n2单词记忆法(N2 word memory method).doc
- mnti性格与职业兴趣测评(MNTI character and occupation interest analysis).doc
- mrp游戏使用方法(The use of MRP game method).doc
- mp3格式说明(MP3 format).doc
- mysql 大企业级应用可行性分析(Feasibility analysis of MySQL enterprise application).doc
- nat第二次实验扩展教师的正确配置演示(Nat second test extended the correct configuration of teachers' demonstration).doc
- nba2k12操作指导(Nba2k12 operation instruction).doc
- nc日常运行维护(Maintain the daily operation of NC).doc
- nebula使用手册(Nebula manual).doc
最近下载
- 市政基础设施工程施工现场质量管理标准化.doc
- 手机照片视频误删后的恢复方法.doc VIP
- 一例无法控制大脑的心理咨询案例——以人为中心疗法取向.pdf VIP
- [教你如何制作KTV歌曲VOD歌曲KTV歌曲库.doc VIP
- 照明设计软件:AGI 32二次开发_AGI32数据管理与优化.docx VIP
- 第五届潍坊市职业技能大赛城市管理网格员题库及答案(760题).docx VIP
- 鼻肠管滑脱的应急预案.pptx VIP
- DGT 801系列数字式发电机变压器组保护装置技术说明书.pdf
- 广东省肇庆市怀集县事业单位考试真题每日一练带答案解析(2021年03月02日).docx VIP
- 农村教师公开选调进城考试模拟试题1(初中地理·附参考答案).docx
文档评论(0)