Oracle PL/SQL Best Practices, 2/e

Steven Feuerstein

  • 出版商: O'Reilly
  • 出版日期: 2007-11-27
  • 定價: $1,050
  • 售價: 9.0$945
  • 語言: 英文
  • 頁數: 294
  • 裝訂: Paperback
  • ISBN: 0596514107
  • ISBN-13: 9780596514105
  • 相關分類: OracleSQL
  • 立即出貨 (庫存 < 4)

買這商品的人也買了...

商品描述

Description

In this compact book, Steven Feuerstein, widely recognized as one of the world's leading experts on the Oracle PL/SQL language, distills his many years of programming, teaching, and writing about PL/SQL into a set of best practices-recommendations for developing successful applications. Covering the latest Oracle release, Oracle Database 11g, Feuerstein has rewritten this new edition in the style of his bestselling Oracle PL/SQL Programming. The text is organized in a problem/solution format, and chronicles the programming exploits of developers at a mythical company called My Flimsy Excuse, Inc., as they write code, make mistakes, and learn from those mistakes-and each other.

This book offers practical answers to some of the hardest questions faced by PL/SQL developers, including:
  • What is the best way to write the SQL logic in my application code?

  • How should I write my packages so they can be leveraged by my entire team of developers?

  • How can I make sure that all my team's programs handle and record errors consistently?
Oracle PL/SQL Best Practices summarizes PL/SQL best practices in nine major categories: overall PL/SQL application development; programming standards; program testing, tracing, and debugging; variables and data structures; control logic; error handling; the use of SQL in PL/SQL; building procedures, functions, packages, and triggers; and overall program performance.

This book is a concise and entertaining guide that PL/SQL developers will turn to again and again as they seek out ways to write higher quality code and more successful applications.

"This book presents ideas that make the difference between a successful project and one that never gets off the ground. It goes beyond just listing a set of rules, and provides realistic scenarios that help the reader understand where the rules come from. This book should be required reading for any team of Oracle database professionals."

--Dwayne King, President, KRIDAN Consulting

 

 

Table of Contents

Preface

1. The Big Picture

     Successful Applications Are Never an Accident

     Best Practices for Successful Applications

2. Real Developers Follow Standards

     Best Practices for Developing and Using Standards

3. Life After Compilation

     Testing, Tracing, and Debugging

     Best Practices for Testing, Tracing, and Debugging

4. What's Code Without Variables?

     Best Practices for Declaring Variables and Data Structures

     Best Practices for Using Variables and Data Structures

     Best Practices for Declaring and Using Package Variables

5. Developer As Traffic Cop

     Best Practices for Conditional and Boolean Logic

     Best Practices for Loop Processing

     Best Practices for Branching Logic

6. Doing the Right Thing When Stuff Goes Wrong

     Best Practices for Understanding Error Handling

     Best Practices for Nitty-Gritty, Everyday Exception Programming

     Best Practices for Coding Defensively

7. Break Your Addiction to SQL

     SQL Is Bad!

     General SQL Best Practices

     Best Practices for Querying Data from PL/SQL

     Best Practices for Changing Data from PL/SQL

     Best Practices for Dynamic SQL

8. Playing with Blocks (of Code)

     Best Practices for Parameters

     Best Practices for Procedures and Functions

     Best Practices for Packages

     Best Practices for Triggers

9. My Code Runs Faster Than Your Code

     Best Practices for Finding Slow Code

     Best Practices for High-Impact Tuning

     Best Practices for Other Tuning

A. Best Practices Quick Reference

B. Resources for PL/SQL Developers

Index

商品描述(中文翻譯)

描述

在這本簡潔的書中,被廣泛認可為Oracle PL/SQL語言領域的世界領先專家之一的Steven Feuerstein,將他多年的編程、教學和寫作關於PL/SQL的經驗融入了一套最佳實踐建議,用於開發成功的應用程序。本書涵蓋了最新的Oracle版本Oracle Database 11g,Feuerstein以他的暢銷書《Oracle PL/SQL Programming》的風格重新編寫了這個新版本。本書以問題/解決的形式組織,記錄了一家名為My Flimsy Excuse, Inc.的虛構公司的開發人員在編寫代碼、犯錯誤並從這些錯誤和彼此中學習的過程中的編程經歷。

本書提供了PL/SQL開發人員面臨的一些最難問題的實用答案,包括:
- 在我的應用程序代碼中,寫SQL邏輯的最佳方法是什麼?
- 我應該如何編寫我的包,以便我的整個開發團隊都能利用它們?
- 如何確保我們團隊的所有程序都能一致地處理和記錄錯誤?

《Oracle PL/SQL最佳實踐》在九個主要類別中總結了PL/SQL的最佳實踐:整體PL/SQL應用程序開發;編程標準;程序測試、追踪和調試;變量和數據結構;控制邏輯;錯誤處理;在PL/SQL中使用SQL;構建過程、函數、包和觸發器;以及整體程序性能。

本書是一本簡潔而有趣的指南,PL/SQL開發人員將一再求助於其中,以尋找撰寫更高質量代碼和更成功應用程序的方法。

“這本書提出的想法使得一個項目成功與否之間存在差異。它不僅僅列出一套規則,還提供了幫助讀者理解規則來源的現實情境。任何一個Oracle數據庫專業團隊都應該閱讀這本書。”
- Dwayne King,KRIDAN Consulting總裁

目錄

前言
1. 大局觀
- 成功的應用程序從不是偶然的
- 成功應用程序的最佳實踐
2. 真正的開發人員遵循標準
- 開發和使用標準的最佳實踐
3. 編譯後的生活
- 測試、追踪和調試
- 測試、追踪和調試的最佳實踐
4. 沒有變量的代碼是什麼?
- 声明變量和數據結構的最佳實踐
- 使用變量和數據結構的最佳實踐
- 声明和使用包變量的最佳實踐
5. 開發人員作為交通警察
- 條件和布爾邏輯的最佳實踐
- 循環處理的最佳實踐
- 分支邏輯的最佳實踐
6. 當事情出錯時做正確的事情
- 理解錯誤處理的最佳實踐
- 日常異常編程的最佳實踐