
Foundation Db2 and Python
Access Db2 with Module-Based API Examples Using Python
W. David Ashley(Author)
APress
Published on 5. August 2021
Book
Paperback/Softback
XV, 214 pages
978-1-4842-6941-1 (ISBN)
Description
Work with Db2 to write SQL and access databases using optimized code for the fastest response. This book will give you complete documentation on DB2 via Python for the IBM_db module and provide a number of examples for the usage of each module API.
Begin by getting your free version of Db2 for Linux and Windows. While the book concentrates more on the Linux version of Db2, it also covers enough of the Windows version so that you're comfortable with obtaining and installing Db2 on your version of Windows. Next, you'll see how to install the sample database that comes with Db2, and take some data from the web to design a database around it, including tables and indexes.
For Db2 to be really useful you need to use strong SQL expressions. This book provides specific examples of how to avoid using poor ones that can cause extra processing time for the query. Lastly, you'll look at each API in the ibm_db and ibm_db_dbi module. This module is not sponsored by IBM and must be installed separately from the Db2 database.
After reading Foundation Db2 and Python you'll be able to install Db2 on Windows or Linux, and perform backups and restore data.
What You'll Learn
Python programmers and DB2 administrators interested in building application with Python and DB2
Begin by getting your free version of Db2 for Linux and Windows. While the book concentrates more on the Linux version of Db2, it also covers enough of the Windows version so that you're comfortable with obtaining and installing Db2 on your version of Windows. Next, you'll see how to install the sample database that comes with Db2, and take some data from the web to design a database around it, including tables and indexes.
For Db2 to be really useful you need to use strong SQL expressions. This book provides specific examples of how to avoid using poor ones that can cause extra processing time for the query. Lastly, you'll look at each API in the ibm_db and ibm_db_dbi module. This module is not sponsored by IBM and must be installed separately from the Db2 database.
After reading Foundation Db2 and Python you'll be able to install Db2 on Windows or Linux, and perform backups and restore data.
What You'll Learn
- Obtain and install Db2 properly on Linux and Windows
- Create databases and load them on Db2
- Work with ibm_db and ibm_db_dbi API modules for Python
- Write SQL for Db2
- Review the future of the ibm_db Python module
Python programmers and DB2 administrators interested in building application with Python and DB2
More details
Edition
1st ed.
Language
English
Place of publication
Berkeley
United States
Target group
Professional and scholarly
Illustrations
11 s/w Abbildungen
XV, 214 p. 11 illus.
Dimensions
Height: 254 mm
Width: 178 mm
Thickness: 13 mm
Weight
445 gr
ISBN-13
978-1-4842-6941-1 (9781484269411)
DOI
10.1007/978-1-4842-6942-8
Schweitzer Classification
Other editions
Additional editions

E-Book
08/2021
APress
€66.99
Available for download
Person
W. David Ashley is a technical writer for SkillSoft where he specializes in open source, particularly Linux. As a member of the Linux Fedora documentation team he recently led the Libvert project documentation, and wrote the Python programs included with it. He has developed in 20 different programming languages during his 30 years as a software developer and IT consultant, including more than 18 years at IBM and 12 years with American Airlines.
Content
Chapter 1: Introduction to Db2 for Linux and Windows.- Chapter 2: Installing Db2 Db2 on Linux and Windows.- Chapter 3: Db2 Management.- Chapter 4: Database Physical Design.- Chapter 5: Db2 Utilities.- Chapter 6: Business Rules and Constraints.- Chapter 7: Writing Good SQL for Db2.- Chapter 8: Python and Db2 - The ibm_db Module.- Chapter 9: ibm_db Module Documentation.- Chapter 10: Where Is The ibm_db Module Going?