Oreilly.SQL.in.a.Nutshell.3rd.Edition.Nov.2008.pdf

(3383 KB) Pobierz
SQL
IN A NUTSHELL
Third Edition
D
ownload
from Wow! eBook <www.wowebook.com>
Kevin E. Kline
with Daniel Kline and Brand Hunt
Beijing • Cambridge • Farnham • Köln • Sebastopol • Taipei • Tokyo
SQL in a Nutshell, Third Edition
by Kevin E. Kline with Daniel Kline and Brand Hunt
Copyright © 2009 O’Reilly Media, Inc. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online
editions are also available for most titles (safari.oreilly.com). For more information, contact
our corporate/institutional sales department: (800) 998-9938 or
corporate@oreilly.com.
Editors:
Julie Steele and Mary Treseler
Production Editor:
Rachel Monaghan
Copyeditor:
Rachel Head
Indexer:
Angela Howard
Printing History:
January 2001:
September 2004:
November 2008:
First Edition.
Second Edition.
Third Edition.
Production Services:
Octal Publishing, Inc.
Cover Designer:
Karen Montgomery
Interior Designer:
David Futato
Illustrator:
Jessamyn Read
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered
trademarks of O’Reilly Media, Inc. The
In a Nutshell
series designations,
SQL in a Nutshell,
the image of a chameleon, and related trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in this book, and O’Reilly Media,
Inc. was aware of a trademark claim, the designations have been printed in caps or initial
caps.
While every precaution has been taken in the preparation of this book, the publisher and
authors assume no responsibility for errors or omissions, or for damages resulting from the
use of the information contained herein.
This book uses RepKover
a durable and flexible lay-flat binding.
,
ISBN: 978-0-596-51884-4
[M]
Chapter 1
Table of Contents
Preface
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
v
1. SQL History and Implementations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
The Relational Model and ANSI SQL
History of the SQL Standard
SQL Dialects
2
10
14
2. Foundational Concepts
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
16
Database Platforms Described in This Book
Categories of Syntax
SQL2003 and Platform-Specific Datatypes
Constraints
16
17
29
50
3. SQL Statement Command Reference
. . . . . . . . . . . . . . . . . . . . . . . . . .
59
How to Use This Chapter
SQL Platform Support
SQL Command Reference
59
60
63
4. SQL Functions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
437
Types of Functions
ANSI SQL Aggregate Functions
ANSI SQL Window Functions
ANSI SQL Scalar Functions
Platform-Specific Extensions
437
438
455
463
483
iii
Zgłoś jeśli naruszono regulamin