- 1、本文档共19页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
结构化查询语言(Structured query language)
The third chapter is structured query language --SQL
SQL (Structured Query Language) - Structured Query Language
3.1 definition of the basic table and insert data
The system structure of 3.1.1 SQL database
1. basic table (Base Table): the independent existence of the table itself, which is actually stored in the database table rather than from the other table out of the guide.
2. Views: (View) derived from one or several basic table or view a few tables. The view itself is not independent of stored data, save only the view definition system.
Database architecture -- storage mode supported by SQL (internal model), model, model.
From the users perspective, the basic tables and views are, like the SQL to access them. The basic table corresponds to model, view corresponding mode.
3.1.2 defines the basic table
The definition of the basic form is to create a basic table, table name (name) and it includes all the attribute name and data type specific provisions.
Command format:
CREATE TABLE (table name field name 1 types (width, decimal), 2 types of field name (width, decimal), all of all)
Command function: for the establishment of a basic table.
For example: CARTE TABLE books (the total number of C (6), C (8), the classification of the title C (16), C (6), at N (10,2))
3.1.3 modify and delete the basic table
ALTER TABLE ADD (author of C book publishing unit (8), C (20))
In the book database structure to add author and publishing unit two fields.
The basic DROP TABLE table name delete the basic table.
3.1.4 insert data
Command format:
INSERT INTO (field name table name [1, 2] of all field names) of all VALUES (expression 1, expression of the 2 MVP MVP)
Command function: according to the given field value added a new record in the database at the end.
For example: INSERT INTO VALUES (446943 books, TP31/138, database, Yang Hua, 17.8)
INSTER INTO book (title, author, unit) VALUES (FoxPro encyclopedia, Zhou Hong, 28.6)
3.2 SQL --SQL-SELECT
您可能关注的文档
- 高级技工培养不能急于求成(Senior technical training can not be anxious).doc
- 高级技师工作总结(Senior technician work summary).doc
- 高级技师论文(Senior technician thesis).doc
- 高级口译口试通过经验(Advanced oral interpretation through experience).doc
- 高级汽车修理工试卷5(Senior auto engineer 5).doc
- 高级消防(3)(Advanced fire protection (3)).doc
- 高级消防(16)(Advanced fire protection (16)).doc
- 高级英语第一册第七课翻译神奇的集成电路片时代(Advanced English, Volume 1, seventh, translating the magical era of integrated circuit chips).doc
- 高级制图员基础题(Basic questions for senior Draftsman).doc
- 高考地理答题规范——特征问题答题方法(Criterion for answering questions in college entrance examination -- characteristic question answering method).doc
- 2025年包装机械行业洞察报告及未来五至十年发展趋势预测报告.docx
- 2025年出租车行业洞察报告及未来五至十年发展趋势预测报告.docx
- 2025年废弃电器电子回收处理行业洞察报告及未来五至十年发展趋势预测报告.docx
- 2025年海上风电智能运维行业洞察报告及未来五至十年发展趋势预测报告.docx
- 2025年薄膜电容器行业洞察报告及未来五至十年发展趋势预测报告.docx
- 2025年门锁控制器行业洞察报告及未来五至十年发展趋势预测报告.docx
- 2025年海上风力发电行业洞察报告及未来五至十年发展趋势预测报告.docx
- 2025年机器人行业洞察报告及未来五至十年发展趋势预测报告.docx
- 2025年砷化镓行业洞察报告及未来五至十年发展趋势预测报告.docx
- 2025年除尘设备行业洞察报告及未来五至十年发展趋势预测报告.docx
最近下载
- 初中物理“最后一课” 中考物理考前答题技巧指导 课件 (共70张PPT).pptx VIP
- 消费品以旧换新调研报告(1).docx VIP
- 一种单极性转双极性数字信号的转换电路.pdf VIP
- 2025年企业所得税汇算清缴培训.pptx VIP
- 文物保护工程施工一级资质单位.pdf VIP
- 安川电机在YRC1000上设定Modbus TCP功能以及西门子PLC博图项目设定手顺.pdf VIP
- 浅析高考历史中的家国情怀.pptx VIP
- 2024年世界职业院校技能大赛高职组“环境检测与监测组”赛项考试题库(含答案) .docx VIP
- 第24课《带上她的眼睛》课件-2024-2025学年统编版语文七年级下册.pptx VIP
- 2025 年“安全生产月”“安全隐患我查找”国家应急科普宣传网络知识竞赛题库(第1关-第6关)完整题库答案.docx VIP
文档评论(0)