SQL for MySQL Developers: A Comprehensive Tutorial and Reference (Paperback)
暫譯: MySQL 開發者的 SQL:全面教程與參考指南 (平裝本)

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 版本 5 強大 SQL 方言指南

MySQL 版本 5 提供了一種功能強大的 SQL 方言。在《MySQL 開發者的 SQL》中,Rick F. van der Lans 幫助您掌握這個版本的 SQL,並充分利用其潛力。透過案例研究和實作練習,van der Lans 照亮了每一個關鍵概念、技術和語句,包括使創建即使是最複雜的語句和程序變得更容易的進階功能。

憑藉作為 SQL 標準小組成員和企業顧問的數十年經驗,他揭示了 MySQL 的方言為何如此運作,以及如何充分利用它。您將獲得從基本查詢到儲存過程、交易到數據安全的強大見解。

無論您是程式設計師、網頁開發者、分析師、資料庫管理員 (DBA) 或資料庫使用者,本書都能將您從「學徒」提升為真正的 SQL 專家。如果您曾在舊版本的 MySQL 中使用過 SQL,您將變得更加有效率;如果您正在從其他資料庫平台遷移,您將快速掌握實用技能。

內容涵蓋:
撰寫查詢,包括聯接、函數和子查詢
更新數據
創建表、視圖和其他資料庫對象
指定鍵和其他完整性約束
透過索引提高效率
通過密碼和權限強化安全性
在 PHP 程式中嵌入 SQL 語句
構建儲存過程和觸發器
使用交易、鎖定、回滾和隔離級別
利用 MySQL 的目錄
本書的所有範例程式均可從 www.r20.nl 下載。

關於作者
Rick F. van der Lans 是經典著作《SQL 入門》的作者,這本權威的 SQL 指南已經被資料庫開發者依賴超過 20 年。他是一位顧問、作者和講師,專注於資料庫技術、開發工具、數據倉儲和 XML。作為荷蘭 R20/Consultancy 的執行董事,他曾為許多大型公司提供 IT 架構的定義建議。他擔任歐洲元數據會議的主席,並為幾本雜誌撰寫專欄。

目錄:
關於作者 xix
前言 xx
第一部分 介紹 1
第一章 MySQL 介紹 3
第二章 網球俱樂部範例資料庫 29
第三章 安裝軟體 37
第四章 SQL 概述 41
第二部分 查詢和更新數據 71
第五章 SELECT 語句:常見元素 73
第六章 SELECT 語句、表達式和子查詢 145
第七章 SELECT 語句:FROM 子句 171
第八章 SELECT 語句:WHERE 子句 213
第九章 SELECT 語句:SELECT 子句和聚合函數 315
第十章 SELECT 語句:GROUP BY 子句 349
第十一章 SELECT 語句:HAVING 子句 375
第十二章 SELECT 語句:ORDER BY 子句 383
第十三章 SELECT 語句:LIMIT 子句 395
第十四章 組合表達式 409
第十五章 使用者變數和 SET 語句 421
第十六章 HANDLER 語句 429
第十七章 更新表 437
第十八章 載入和卸載數據 461
第十九章 處理 XML 文件 471
第三部分 創建資料庫對象 491
第二十章 創建表 493
第二十一章 指定完整性約束 539
第二十二章 字符集和排序 561
第二十三章 ENUM 和 SET 類型 577
第二十四章 更改和刪除表 591
第二十五章 使用索引 603
第二十六章 視圖 631
第二十七章 創建資料庫 653
第二十八章 使用者和數據安全 659
第二十九章 表維護語句 683
第三十章 SHOW、DESCRIBE 和 HELP 語句 693
第四部分 程序性資料庫對象 701
第三十一章 儲存過程 703
第三十二章 儲存函數 745
第三十三章 觸發器 755
第三十四章 事件 767
第五部分 使用 SQL 編程 783
第三十五章 MySQL 和 PHP 785
第三十六章 使用預備語句的動態 SQL 807
第三十七章 交易和多用戶使用 815
附錄 A SQL 語法 839
附錄 B 標量函數 903
附錄 C 系統變數 953
附錄 D 參考書目 963
索引 967