Skip to content

DB2 Universal Database SQL Developer's Guide

Best in textbook rentals since 2012!

ISBN-10: 0071353895

ISBN-13: 9780071353892

Edition: 2000

Authors: Roger Sanders

List price: $59.00
Blue ribbon 30 day, 100% satisfaction guarantee!
Out of stock
We're sorry. This item is currently unavailable.
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

This text shows readers how to develop DB2 applications using embedded SQL, the closest thing to a standard query language on the database market. It talks them through the basic steps needed to build, test and debug embedded applications.
Customers also bought

Book details

List price: $59.00
Copyright year: 2000
Publisher: McGraw-Hill School Education Group
Binding: Paperback
Size: 7.50" wide x 9.50" long x 2.25" tall
Weight: 3.146
Language: English

Forewordp. xix
Introductionp. xxi
Basic Database Conceptsp. 1
DB2 Database Architecturep. 3
The Relational Databasep. 4
Relational Database Objectsp. 4
DB2 Database Directoriesp. 17
Database Consistency Mechanismsp. 23
What Is Data Consistency?p. 24
Transactionsp. 24
Concurrency and Transaction Isolation Levelsp. 25
Lockingp. 29
Application Development Fundamentalsp. 43
Getting Started with DB2 Application Developmentp. 45
What Is a DB2 Database Application?p. 46
Designing a DB2 Database Applicationp. 46
Elements of a DB2 Database Applicationp. 48
Establishing the DB2 Database Application Development Environmentp. 55
Establishing the DB2 Database Application Testing Environmentp. 56
Managing Transactionsp. 57
Creating and Preparing Source Code Filesp. 58
Writing Embedded SQL Applicationsp. 61
A Word About Prototyping Embedded SQL Statementsp. 62
The Main Parts of an Embedded SQL Source-Code Filep. 62
Creating and Using a Common Error-Handling Routinep. 70
Using Exception, Signal, and Interrupt Handlersp. 71
Creating Executables and Packagesp. 72
A Word about Timestampsp. 76
Running, Testing, and Debugging Embedded SQL Applicationsp. 77
Summaryp. 77
Programming in Complex Environmentsp. 79
National Language Supportp. 80
Japanese and Traditional Chinese EUC Code Set Supportp. 84
Working with Multiple Databases Using Two-Phase Commit Processingp. 85
How the Two-Phase Commit Process Worksp. 86
DRDA Server Accessp. 90
Multiple-Thread Database Accessp. 90
Concurrent Transactionsp. 93
X/Open XA Interface Supportp. 94
Movement of Large Volumes of Data in a Network Environmentp. 97
Nodegroups and Data Partitioningp. 98
Summaryp. 107
Improving Application Performancep. 109
Tuning Embedded SQL Queriesp. 110
Index Managementp. 112
Table-Space Managementp. 114
Using the Precompiler Optimization Featurep. 115
Row Blockingp. 117
Locks and Application Performancep. 117
Code-Page Selectionp. 119
Data Partitioningp. 119
Summaryp. 120
SQL Statementsp. 123
Application Programming Language Construct Statementsp. 125
SQL Precompiler Directivesp. 126
Dynamic SQL Supportp. 127
Dynamic SQL and Parameter Markersp. 127
Cachingp. 132
The DB2 Programming Language Construct SQL Statementsp. 134
Begin Declare Sectionp. 135
End Declare Sectionp. 138
Free Locatorp. 138
Includep. 141
Wheneverp. 142
Begin Compoundp. 147
End Compoundp. 153
Preparep. 153
Describep. 159
Executep. 165
Execute Immediatep. 170
Explainp. 174
Database Connection and Transaction Control Statementsp. 179
Connection Managementp. 180
Application Statesp. 181
Application Statesp. 182
Connection Statesp. 182
SQL Precompiler Options That Affect Connection Managementp. 183
Transaction Managementp. 185
DB2 Database Connection and Transaction Control SQL Statementsp. 186
Connectp. 187
Set Connectionp. 198
Releasep. 199
Disconnectp. 202
Lock Tablep. 203
Commitp. 206
Data Access and Modification Controlp. 215
Authorities and Privilegesp. 216
Instance-Level Authoritiesp. 216
Database-Level Authoritiesp. 217
Privilegesp. 218
Granting and Revoking Authorities and Privilegesp. 221
The DB2 Data Access and Modification Control SQL Statementsp. 221
Grant (Database Authorities)p. 222
Grant (Database Authorities)p. 223
Grant (Table, View, and Nickname Privileges)p. 228
Grant (Index Privileges)p. 234
Grant (Package Privileges)p. 239
Grant (Schema Privileges)p. 243
Revoke (Database Authorities)p. 248
Revoke (Table, View, and Nickname Privileges)p. 250
Revoke (Index Privileges)p. 253
Revoke (Package Privileges)p. 254
Revoke (Schema Privileges)p. 256
Data Definition Language (DDL) Statementsp. 259
Data Definition Language (DDL) Statementsp. 260
The DB2 DDL SQL Statementsp. 269
Create Bufferpoolp. 270
Create Nodegroupp. 275
Create Tablespacep. 280
Create Table (Normal)p. 290
Create Table (Typed)p. 312
Create Table (Summary)p. 331
Create View (Normal)p. 342
Create View (Typed)p. 349
Create Indexp. 360
Create Schemap. 367
Create Aliasp. 372
Comment onp. 377
Dropp. 385
Modifying Data Object Definitionsp. 397
Altering Nodegroupsp. 398
Altering Table Spacesp. 398
Altering Tablesp. 398
Renaming Tablesp. 399
Controlling Integrity Checkingp. 399
The DB2 Data Definition Modification SQL Statementsp. 400
Alter Bufferpoolp. 401
Alter Nodegroupp. 406
Alter Tablespacep. 411
Alter Tablep. 419
Alter Viewp. 441
Rename Tablep. 448
Refresh Tablep. 453
Set Integrityp. 458
Data Manipulation Language (DML) Statementsp. 473
Queriesp. 474
The Select Statement and Its Clausesp. 474
A Word About Subqueriesp. 482
Retrieving Multiple Rows Using a Cursorp. 482
Adding Data -- the INSERT Statementp. 484
The DB2 Data Manipulation Language (DML) SQL Statementsp. 486
Select Intop. 487
Values Intop. 490
Declare Cursorp. 493
Openp. 499
Fetchp. 502
Closep. 506
Insertp. 506
Updatep. 513
Deletep. 522
User-Defined Data Types, User-Defined Functions, and Stored Proceduresp. 529
User-Defined Data Typesp. 530
Why Use User-Defined Data Types?p. 531
User-Defined Functionsp. 532
Why Use User-Defined Functions?p. 536
Stored Proceduresp. 537
The DB2 User Defined Data Type, User Defined Function and Stored Procedure Definition SQL Statementsp. 541
Create Distinct Typep. 542
Create Type (Structured)p. 550
Alter Type (Structured)p. 562
Create Function (Source or Template)p. 568
Create Function (External Scalar)p. 578
Create Function (External Table)p. 601
Create Function (OLE DB External Table)p. 623
Create Procedurep. 633
Callp. 653
Triggersp. 661
Defining and Using Triggersp. 662
Using Transition Variablesp. 667
Handling Errors in Triggersp. 667
Trigger Cascadingp. 668
Recursive Triggersp. 668
Comparing Constraints and Triggersp. 669
Interaction Among Constraints and Triggersp. 669
DBZ Trigger Definition SOL Statementsp. 671
Create Triggerp. 672
Set (Transition Variable)p. 681
Signal Sqlstatep. 683
Database Event Monitorsp. 687
Event Monitorsp. 688
Creating Event Monitorsp. 688
The DB2 Database Event Monitor Control SQL Statementsp. 691
Create Event Monitorp. 692
Set Event Monitor Statep. 701
Flush Event Monitorp. 705
Setting DB2's Special Registersp. 709
DB2's Special Registersp. 710
The DB2 Special Register Modification SQL Statementsp. 714
SQL Data Structuresp. 745
SQL Functionsp. 757
Federated Systemsp. 775
The DB2 Data Links Managerp. 783
Developing JDBC Applications And Appletsp. 791
How The Example Programs Were Developedp. 809
Bibliographyp. 821
Indexp. 823
SQL Statements Indexp. 835
Table of Contents provided by Syndetics. All Rights Reserved.