Sams Teach Yourself SQL in 24 Hours (5th Edition) cover

Sams Teach Yourself SQL in 24 Hours (5th Edition)

No rating yet
Word count
562 words
Chapters
32
Series
A complete, hands-on introduction to SQL for beginners
ISBN
9787115264077

Tags

Summary

This is the Chinese translation of the fifth edition of Sams Teach Yourself SQL in 24 Hours, co-authored by three authors with long experience in database teaching and consulting, and written for readers with no prior background in SQL. The book is divided into nine parts and 24 chapters. It begins with the definition, history, and command categories of SQL to establish a conceptual framework, then moves into database creation, covering data types, tables and database objects, integrity constraints, normalization and denormalization, as well as data operations such as INSERT, UPDATE, and DELETE and transaction control (COMMIT, ROLLBACK, SAVEPOINT). Parts III and IV focus on query skills: the basic structure of the SELECT statement, comparison and logical operators, summary functions, sorting and grouping, data formatting, date and time handling, and then multi-table joins, subqueries, and combining multiple queries. Parts V through VII discuss indexes and performance tuning, user and privilege management, views, and the system catalog. The final part extends to advanced SQL topics, SQL's expansion into enterprise and Internet environments, and the dialect differences among database products relative to standard SQL. The appendices provide a quick reference to common SQL commands, MySQL installation and setup of a practice environment, answers to the quizzes and exercises in each chapter, and the CREATE TABLE and INSERT statements for the sample tables, so readers can practice as they read. Throughout, the book emphasizes the gap between the standard and its implementations; examples cover major platforms such as Oracle and MySQL, and each chapter includes a summary, Q&A, and practice problems.

Editor's review

SQL 入门书很多,这本的长处在于“体系完整 + 可动手”。它不是把 SELECT 讲完就收尾的速成小册,而是从建库、建表、约束、范式一路讲到事务、索引、权限和视图,读完对关系型数据库的运作有一个闭环认识。 第二,它明确区分 ANSI 标准与各家产品的方言。很多初学者换一个数据库就发现代码跑不通,原因往往是没有建立“标准—实现”的意识;本书在讲解语法时反复提示不同实现的差异,这个习惯比记住某一条语句更值钱。 第三,练习密度高。每章末尾都有小结、问与答和实践题,附录还给出答案、建表与插入脚本以及 MySQL 环境搭建步骤,读者可以照着把示例库跑起来,避免“看得懂、写不出”。 需要说明的是,本版成书于 2011 年,示例以 MySQL 等当时的版本为准,部分语法细节(如窗口函数、新版本特性)未覆盖,适合打地基而非追新。作为第5版,它属于该系列中流传较广、评价较稳的一版,适合作为第一本系统教材精读一遍,再用更新资料补齐新特性。

Who it's for

A good fit for

  • 完全没有数据库基础、想系统学习 SQL 的编程初学者
  • 需要写查询但缺少体系训练的测试、运维、数据分析从业者
  • 高校数据库课程的学生,可作为配套练习教材
  • 从 Excel 转向关系型数据库、希望理解建表与规范的职场人

Not a good fit for

  • 已有多年 SQL 经验、想查找新版特性的资深开发者
  • 只想速查语法、不愿做练习的读者
  • 需要特定数据库(如 PostgreSQL 专有功能)深度专讲的读者

Reading tips

  1. 先按章节顺序读第一到第四部分,边读边在本地 MySQL 中把示例表建起来,保证每段代码都能跑通。
  2. 每章后的测验与实践题务必动手做,附录C的答案建议做完再看,避免形成“看懂即会”的错觉。
  3. 读到性能、索引与权限部分时,可结合自己工作中的真实表结构做改造练习,理解约束与索引的代价。
  4. 全书读完后补一份更新资料,重点看窗口函数、CTE 等本书未覆盖的现代 SQL 特性。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Part I: An Overview of SQL
  2. Chapter 1: Welcome to the World of SQL
  3. Chapter 2: Defining Data Structures
  4. Chapter 3: Managing Database Objects
  5. Chapter 4: The Normalization Process
  6. Chapter 5: Manipulating Data
  7. Chapter 6: Managing Database Transactions
  8. Chapter 7: Introduction to Database Queries
  9. Chapter 8: Using Operators to Categorize Data
  10. Chapter 9: Summarizing Data Results
  11. Chapter 10: Sorting and Grouping Data
  12. Chapter 11: Restructuring the Appearance of Data
  13. Chapter 12: Dates and Times
  14. Chapter 13: Joining Tables in Queries
  15. Chapter 14: Using Subqueries to Define Undefined Data
  16. Chapter 15: Combining Multiple Queries
  17. Chapter 16: Using Indexes to Improve Performance
  18. Chapter 17: Improving Database Performance
  19. Chapter 18: Managing Database Users
  20. Chapter 19: Managing Database Security
  21. Chapter 20: Creating and Using Views and Synonyms
  22. Chapter 21: Working with the System Catalog
  23. Chapter 22: Advanced SQL Topics
  24. Chapter 23: Extending SQL to the Enterprise, the Internet, and the Intranet
  25. Chapter 24: Extensions to Standard SQL
  26. Appendix A: Common SQL Commands
  27. Appendix B: Using MySQL for Exercises
  28. Appendix C: Answers to Quizzes and Exercises
  29. Appendix D: CREATE TABLE Statements for the Book's Examples
  30. Appendix E: INSERT Statements for the Book's Examples
  31. Appendix F: Additional Exercises
  32. Glossary

FAQ

这本书适合零基础直接看吗?
适合。全书从 SQL 的定义、命令分类讲起,逐步进入建库建表与查询,每章配小结、问与答和练习,附录还提供 MySQL 安装与练习脚本,初学者可以自行搭建环境跟练。
书里的示例用什么数据库?
示例兼顾 ANSI 标准与 Oracle、MySQL 等主流实现,本版较多采用开源的 MySQL 作为练习平台,附录B专门介绍 MySQL 的安装与使用,同时会提示不同产品之间的语法差异。
这版内容会不会过时?
作为2011年出版的第5版,基础语法、建表、事务、索引等内容依然适用,但窗口函数、CTE 等较新特性未涉及,建议读完后补充近年资料。
每章后面的练习有答案吗?
有。附录C收录了各章测验与练习的答案,附录D和附录E分别给出示例表的 CREATE TABLE 与 INSERT 语句,便于对照检查自己的写法。
这本书和《SQL必知必会》有什么区别?
《SQL必知必会》更轻薄、偏语法速览;本书篇幅更大,覆盖建库、范式、事务、索引、权限等数据库设计与管理内容,体系更完整,适合作为第一本系统教材。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

More by the same author

Top rated in the same category