- Shopping Bag ( 0 items )
Ships from: Nashville, TN
Usually ships in 1-2 business days
Ships from: Chatham, NJ
Usually ships in 1-2 business days
Ships from: acton, MA
Usually ships in 1-2 business days
Using the IBM DB2 SQL Procedural Language (SQL PL), programmers can drive major improvements in database performance, manageability, and time-to-market. Now, IBM's own experts present the definitive guide to DB2 SQL PL development on any platform: Windows, UNIX, Linux, iSeries, or zSeries.
DB2 SQL PL, Second Edition shows developers how to take advantage of every facet of the SQL PL language and development environment. The authors offer up-to-the-minute coverage, best practices, and tips for building basic SQL procedures, writing flow-of-control statements, creating cursors, handling conditions, and much more. Along the way, they illuminate advanced features ranging from stored procedures and triggers to user-defined functions.
The only book to combine practical SQL PL tutorials and a detailed syntax reference, DB2 SQL PL, Second Edition draws on the authors' unparalleled expertise with SQL PL in real business environments. Coverage includes
Whether you're developing new SQL PL applications, migrating or tuning existing applications, or administering DB2, you'll find this book indispensable.
|Ch. 2||Basic SQL procedure structure||11|
|Ch. 3||Overview of SQL PL language elements||37|
|Ch. 4||Using flow of control statements||63|
|Ch. 5||Understanding and using cursors and result sets||93|
|Ch. 6||Condition handling||125|
|Ch. 7||Working with dynamic SQL||175|
|Ch. 8||Nested SQL procedures||193|
|Ch. 9||User-defined functions and triggers||215|
|Ch. 10||Leveraging DB2 application development features||271|
|Ch. 11||Deploying SQL procedures, functions, and triggers||299|
|Ch. 12||Performance tuning||325|
|Ch. 13||Best practices||355|
|App. A||Getting started with DB2||371|
|App. B||Inline SQL PL for DB2 UDB for Linux, UNIX, and Windows||411|
|App. C||Building from the command line||419|
|App. D||Using the DB2 development center||431|
|App. E||Security considerations in SQL procedures||463|
The more things change, the more they stay the same.
Last year, when the first edition of this book was released, IBM had just released an updated version of DB2 on the Linux, UNIX, and Windows platforms—a version that was the most significant release to date, and one that provided new capabilities to reflect advances in the technology of both database systems and IT in general.
As I write this only a year later, IBM has once again just released an updated versions of the DB2 UDB product family; DB2 UDB for Linux, UNIX, and Windows, DB2 UDB for iSeries and DB2 UDB for zSeries—significant new releases that include many new features and enhancements that make this the most advanced set of database products IBM has ever offered—and we believe the most advanced in the industry.
Unlike the first edition of the book, which covered only the Linux, UNIX, and Windows platforms, the second edition of this book covers SQL Procedural Language for the entire DB2 family—those platforms covered in the first edition, and now including DB2 for z-Series (OS/390) and i-Series (i5/OS) platforms. Additionally, this edition introduces a method for resolving performance issues—how to monitor and identify bottlenecks, and how to provide alternatives for resolution.
DB2 UDB is evolving to reflect the changing needs of the development community. Many of the new features in DB2 UDB are designed to significantly improve ease of use for the development community, including new autonomic capabilities than will help to change the role of the DBA. There have been many other areas of technicalleadership that have been introduced in technical support; all have helped to propel DB2 into the leadership position in the database market.
Another such developer-oriented feature is the subject of the original edition of this publication; this updated second edition focuses on the updates and improvements for SQL PL in updated versions of DB2 UDB.
SQL PL for DB2 provides a high-level language to build portable application logic that has the potential for better performance and scalability, by virtue of exploiting server-side resources and eliminating client bottlenecks. Exploiting SQL PL can also serve to improve the manageability and security of applications by providing a more modular structure. The latest version of DB2 UDB on all platforms includes enhancements for stored procedure development that significantly increases usability, allowing more developers to experiment with writing these stored procedures. This updated edition discusses this enhancement in detail.
An important feature in the updated versions of DB2 is that SQL PL is now native in all versions—DB2 UDB is no longer dependent upon translation into C stored procedures. For you as a developer, you'll see increased productivity and faster performance from your applications. And, you'll see reduced costs of ownership—no more additional expenses from compilers or run-times.
Knowing how and when to exploit the many capabilities of SQL PL for DB2 is an important skill to develop—and the authors of this book are experts on the subject, as certified DB2 specialists.
They have done a very nice job in efficiently laying out the many benefits in an easy to understand fashion. They've covered all language elements of DB2 SQL PL, with a large number of examples and detailed explanations. They offer expert tips and best practices derived from experiences with real customers. Nowhere else will the reader find such a vast array of experience-driven tips; this book is the ultimate developer's resource for writing SQL procedures.
We at IBM are very proud of the success that we've seen with DB2, and we're grateful to our many partners, developers and customers who have chosen to build and run their solutions with our database product. Working together, we've built the industry's premiere database product and the broadest set of applications and solutions in the market.
We continue to listen intently to your needs and requirements, and have focused on addressing many of these requirements as DB2 continues to evolve. I know that the skills that you are about to learn or hone for SQL PL for DB2 will serve you well; on behalf of IBM, I look forward to a continuing relationship of delivering the industry's best solutions and applications.
General Manager, Information Management
IBM Software Group
Posted December 26, 2004
The book describes IBM's Procedural Language, which runs on their db2 servers. It is not a general purpose language, like C or Java. Rather, it is tied directly to db2 and IBM's implementation of SQL. But within this context, the book explains the expressive power of PL. It shows at length how you can write stored procedures, triggers and functions in PL. The level of detail and the cited examples should reassure you of PL's capability. But why even write business logic code at the database layer? There have been other books on n-tier application design, which call for the locating of business logic in a middle tier and not at the database. The authors' rejoinder is that while that makes for an elegant design, practical experience shows that often, crucial logic needs to be at the database. This reduces networks traffic and can heavily improve perforance. Hence the need for PL, or something like it. Be wary of the book's claim that PL lets you write 'portable application logic'. It is portable only between instances of db2 running under linux, unix, Microsoft Windows or IBM's operating systems. When you write embedded logic in PL, you are also embedding yourself or your company into db2. Which may indeed be fine by you. But just so you know.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.