SQL for MySQL Developers: A Comprehensive Tutorial and Reference (Paperback)

Rick F. van der Lans

  • 出版商: Addison Wesley
  • 出版日期: 2007-04-20
  • 售價: $2,100
  • 貴賓價: 9.5$1,995
  • 語言: 英文
  • 頁數: 1032
  • 裝訂: Paperback
  • ISBN: 0131497359
  • ISBN-13: 9780131497351
  • 相關分類: MySQLSQL
  • 立即出貨 (庫存 < 3)

買這商品的人也買了...

相關主題

商品描述

Description:

The Most Complete and Practical Guide to MySQL Version 5’s Powerful SQL Dialect

 

MySQL version 5 offers a SQL dialect with immense power. In SQL for MySQL Developers, Rick F. van der Lans helps you master this version ofSQL and take advantage of its full potential. Using case study examplesand hands-on exercises, van der Lans illuminates every key concept,technique, and statement–including advanced features that make iteasier to create even the most complex statements and programs.

 

Drawing on decades of experience as an SQL standards team member and enterprise consultant, he reveals exactly why MySQL’s dialect works as it does–and how to get the most out of it. You’ll gain powerful insight into everything from basic queries to stored procedures, transactions to data security.

 

Whether you’re a programmer, Web developer, analyst, DBA, or database user, this book can take you from “apprentice” to true SQL expert. If you’ve used SQL in older versions of MySQL, you’ll become dramatically more effective–and if you’re migrating from other database platforms, you’ll gain practical mastery fast.

 

Coverage includes

Writing queries, including joins, functions, and subqueries
Updating data
Creating tables, views, and other database objects
Specifying keys and other integrity constraints
Improving efficiency with indexes
Enforcing security via passwords and privileges
Embedding SQL statements within PHP programs
Building stored procedures and triggers
Using transactions, locking, rollback, and isolation levels
Utilizing MySQL’s catalog
All of the book’s sample programs are available for download from
www.r20.nl.

 

About the Author

Rick F. van der Lans is author of the classic Introduction to SQL, the definitive SQL guide that database developers have relied on for more than 20 years. He is a consultant, author, and lecturer specializing in database technology, development tools, data warehousing, and XML. As managing director of the Netherlands-based R20/Consultancy, he has advised many large companies on defining their IT architectures. He chairs the European Meta Data Conference, and writes columns for several magazines.

 

Table of Contents:

About the Author     xix

Preface     xx

PART I Introduction     1

CHAPTER 1 Introduction to MySQL     3

CHAPTER 2 The Tennis Club Sample Database     29

CHAPTER 3 Installing the Software     37

CHAPTER 4 SQL in a Nutshell     41

PART II Querying and Updating Data     71

CHAPTER 5 SELECT Statement: Common Elements     73

CHAPTER 6 SELECT Statements, Table Expressions, and Subqueries     145

CHAPTER 7 SELECT Statement:The FROM Clause     171

CHAPTER 8 SELECT Statement: The WHERE Clause     213

CHAPTER 9 SELECT Statement: SELECT Clause and Aggregation Functions     315

CHAPTER 10 SELECT Statement: The GROUP BY Clause     349

CHAPTER 11 SELECT Statement: The HAVING Clause     375

CHAPTER 12 SELECT Statement: The ORDER BY Clause     383

CHAPTER 13 SELECT Statement: The LIMIT Clause     395

CHAPTER 14 Combining Table Expressions     409

CHAPTER 15 The User Variable and the SET Statement     421

CHAPTER 16 The HANDLER Statement     429

CHAPTER 17 Updating Tables     437

CHAPTER 18 Loading and Unloading Data     461

CHAPTER 19 Working with XML Documents     471

PART III Creating Database Objects     491

CHAPTER 20 Creating Tables     493

CHAPTER 21 Specifying Integrity Constraints     539

CHAPTER 22 Character Sets and Collations     561

CHAPTER 23 The ENUM and SET Types     577

CHAPTER 24 Changing and Dropping Tables     591

CHAPTER 25 Using Indexes     603

CHAPTER 26 Views     631

CHAPTER 27 Creating Databases     653

CHAPTER 28 Users and Data Security     659

CHAPTER 29 Statements for Table Maintenance     683

CHAPTER 30 The SHOW, DESCRIBE, and HELP Statements     693

PART IV Procedural Database Objects     701

CHAPTER 31 Stored Procedures     703

CHAPTER 32 Stored Functions     745

CHAPTER 33 Triggers     755

CHAPTER 34 Events     767

PART V Programming with SQL     783

CHAPTER 35 MySQL and PHP     785

CHAPTER 36 Dynamic SQL with Prepared Statement     807

CHAPTER 37 Transactions and Multiuser Usage     815

APPENDIX A Syntax of SQL     839

APPENDIX B Scalar Functions     903

APPENDIX C System Variables     953

APPENDIX D Bibliography     963

Index     967
 

商品描述(中文翻譯)

描述:MySQL for MySQL Developers 是一本關於 MySQL 版本 5 強大 SQL 語言的完整且實用的指南。作者 Rick F. van der Lans 通過案例研究和實踐練習,幫助讀者掌握這個版本的 SQL,並充分利用其潛力。他闡明了每個關鍵概念、技術和語句,包括使創建最複雜的語句和程序更容易的高級功能。作者憑藉多年作為 SQL 標準團隊成員和企業顧問的經驗,揭示了 MySQL 的 SQL 語言為什麼以及如何運作,以及如何充分利用它。從基本查詢到存儲過程、事務和數據安全性,您將獲得強大的洞察力。無論您是程序員、網絡開發人員、分析師、數據庫管理員還是數據庫用戶,這本書都可以將您從“學徒”變成真正的 SQL 專家。如果您曾在較舊版本的 MySQL 中使用過 SQL,您將變得更加高效,如果您正在從其他數據庫平台遷移,您將快速掌握實用技能。本書涵蓋的內容包括:編寫查詢,包括連接、函數和子查詢;更新數據;創建表、視圖和其他數據庫對象;指定鍵和其他完整性約束;通過索引提高效率;通過密碼和權限實施安全性;在 PHP 程序中嵌入 SQL 語句;構建存儲過程和觸發器;使用事務、鎖定、回滾和隔離級別;利用 MySQL 的目錄。本書的所有示例程序都可以從 www.r20.nl 下載。關於作者:Rick F. van der Lans 是《Introduction to SQL》這本經典 SQL 指南的作者,數據庫開發人員在過去 20 多年中一直依賴這本指南。他是一位專注於數據庫技術、開發工具、數據倉儲和 XML 的顧問、作者和講師。作為荷蘭 R20/Consultancy 的董事總經理,他曾為許多大型公司定義其 IT 架構提供了建議。他是歐洲元數據會議的主席,並為多家雜誌撰寫專欄。目錄:關於作者;前言;第一部分:介紹;第 1 章:MySQL 簡介;第 2 章:網球俱樂部示例數據庫;第 3 章:安裝軟件;第 4 章:SQL 簡介。